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

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)

Create an instance of DelegateResult<T> representing an execution which returned result

public DelegateResult(Exception exception)

Create an instance of DelegateResult<T> representing an execution which threw exception