IAsyncPolicy<TResult>
An interface defining all executions available on an asynchronous policy generic-typed for executions returning results of type TResult.
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, Task<TResult>> action, IDictionary<string, object> contextData)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, Task<TResult>> action, Context context)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, CancellationToken, Task<TResult>> action, IDictionary<string, object> contextData, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, CancellationToken, Task<TResult>> action, IDictionary<string, object> contextData, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Executes the specified asynchronous action within the policy and returns the result.
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<Context, Task<TResult>> action, IDictionary<string, object> contextData)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<Context, CancellationToken, Task<TResult>> action, IDictionary<string, object> contextData, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<Context, CancellationToken, Task<TResult>> action, IDictionary<string, object> contextData, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Task<TResult> ExecuteAsync(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
Sets the PolicyKey for this Policy instance.
Must be called before the policy is first used. Can only be set once.