<PackageReference Include="Polly" Version="8.3.1" />

DelegateResult<TResult>

public class DelegateResult<TResult>
The captured outcome of executing an individual Func<TResult>.
public Exception Exception { get; }

Any exception thrown while executing the delegate. Will be null if policy executed without exception.

public TResult Result { get; }

The result of executing the delegate. Will be default(TResult) if an exception was thrown.

public DelegateResult(TResult result)

Initializes a new instance of the DelegateResult<T> class representing an execution which returned result.

public DelegateResult(Exception exception)

Initializes a new instance of the DelegateResult<T> class representing an execution which threw exception.