PolicyResult<TResult>
The captured result of executing a policy.
Gets the context for this execution.
Gets the exception type of the final exception captured. Will be null if policy executed successfully.
Gets the fault type of the final fault captured. Will be null if policy executed successfully.
Gets the final exception captured. Will be null if policy executed without exception.
Gets the final handled result captured. Will be default(TResult) if the policy executed successfully, or terminated with an exception.
Gets the outcome of executing the policy.
Gets the result of executing the policy. Will be default(TResult) if the policy failed.
public static PolicyResult<TResult> Failure(Exception exception, ExceptionType exceptionType, Context context)
Builds a PolicyResult representing a failed execution through the policy.
Builds a PolicyResult representing a failed execution through the policy.
Builds a PolicyResult representing a successful execution through the policy.