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
Syntax
public delegate Task<bool> 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<Boolean> | Whether the operation should be retried. |
Type Parameters
Name | Description |
---|---|
T |