<PackageReference Include="Polly.Core" Version="8.0.0" />

Outcome<TResult>

public struct Outcome<TResult>
Represents the outcome of an operation which could be a result of type TResult or an exception.
public Exception Exception { get; }

Gets the exception that occurred during the operation, if any.

public TResult Result { get; }

Gets the result of the operation, if any.

public void ThrowIfException()

Throws an exception if the operation produced an exception.