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

PolicyResult<TResult>

public class PolicyResult<TResult>
The captured result of executing a policy
public Context Context { get; }

The context for this execution.

public ExceptionType? ExceptionType { get; }

The exception type of the final exception captured. Will be null if policy executed successfully

public FaultType? FaultType { get; }

The fault type of the final fault captured. Will be null if policy executed successfully

public Exception FinalException { get; }

The final exception captured. Will be null if policy executed without exception.

public TResult FinalHandledResult { get; }

The final handled result captured. Will be default(TResult) if the policy executed successfully, or terminated with an exception.

public OutcomeType Outcome { get; }

The outcome of executing the policy

public TResult Result { get; }

The result of executing the policy. Will be default(TResult) if the policy failed