Delegate IRetryPolicy.ShouldRetryChecker<T>
Delegate to define whether an operation should be retried. RetryExecutionFailedException is the only valid exception that can be thrown.
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public delegate Task<bool> IRetryPolicy.ShouldRetryChecker<T>(Task<T> operationTask)
Parameters
Type | Name | Description |
---|---|---|
Task<T> | operationTask | Use this task to await, and handle the result. |
Returns
Type | Description |
---|---|
Task<bool> | Whether the operation should be retried. |
Type Parameters
Name | Description |
---|---|
T | The type of the result for the operation. |