Class RetryHandler
The retry handler has the generic logic for retrying requests. It uses a retry policy which specifies when a retry should be performed.
public class RetryHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
RetryHandler
- Implements
- Inherited Members
Constructors
RetryHandler(RetryPolicy)
Constructor which takes in a retry policy.
public RetryHandler(RetryPolicy retryPolicy)
Parameters
retryPolicy
RetryPolicyRetry Policy
Properties
Logger
The logger used to log messages.
public override ILogger Logger { get; set; }
Property Value
RetryPolicy
The retry policy which specifies when a retry should be performed.
public RetryPolicy RetryPolicy { get; }
Property Value
Methods
InvokeAsyncCallback(IAsyncExecutionContext)
Invokes the inner handler and performs a retry, if required as per the retry policy.
protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext)
Parameters
executionContext
IAsyncExecutionContextThe execution context which contains both the requests and response context.
InvokeSync(IExecutionContext)
Invokes the inner handler and performs a retry, if required as per the retry policy.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContextThe execution context which contains both the requests and response context.