AsyncPolicy<TResult>
Transient exception handling policies that can be applied to asynchronous delegates
Constructs a new instance of a derived AsyncPolicy<T> type with the passed policyBuilder.
Executes the specified asynchronous action within the policy and returns the result.
public 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.
public Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<Context, Task<TResult>> action, Context context)
Executes the specified asynchronous action within the policy and returns the result.
public Task<PolicyResult<TResult>> ExecuteAndCaptureAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
public 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.
public 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.
public 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.
public 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.
public 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.
public Task<TResult> ExecuteAsync(Func<Context, Task<TResult>> action, IDictionary<string, object> contextData)
Executes the specified asynchronous action within the policy and returns the result.
Executes the specified asynchronous action within the policy and returns the result.
public Task<TResult> ExecuteAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken)
Executes the specified asynchronous action within the policy and returns the result.
public Task<TResult> ExecuteAsync(Func<CancellationToken, Task<TResult>> action, CancellationToken cancellationToken, bool continueOnCapturedContext)
Executes the specified asynchronous action within the policy and returns the result.
public 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.
public 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.
public 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.
public 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.
protected abstract Task<TResult> ImplementationAsync(Func<Context, CancellationToken, Task<TResult>> action, Context context, CancellationToken cancellationToken, bool continueOnCapturedContext)
Defines the implementation of a policy for async executions returning TResult.
Sets the PolicyKey for this AsyncPolicy<T> instance.
Must be called before the policy is first used. Can only be set once.
Wraps the specified inner policy.
Wraps the specified inner policy.