Interface IRetryPolicy
Policy that determines if an operation must be retried based on the exception and number of retry attempts.
Namespace: Unity.Services.Apis
Assembly: solution.dll
Syntax
public interface IRetryPolicy
Properties
Policy
Function that determines if and when an error must be retried based on the type and number of retry attempts. The task can implement exponential backoff if desired.
Declaration
Func<ApiResponse, int, Task<bool>> Policy { get; set; }
Property Value
Type | Description |
---|---|
Func<ApiResponse, int, Task<bool>> |