Interface IRetryStrategy
Interface for retry strategy in HTTP requests
Namespace: MercadoPago.Http
Assembly: MercadoPago.dll
Syntax
public interface IRetryStrategy
Methods
| Edit this page View SourceShouldRetry(HttpRequestMessage, HttpResponseMessage, bool, int)
Indicates if should retry the HTTP request.
Declaration
RetryResponse ShouldRetry(HttpRequestMessage httpRequest, HttpResponseMessage httpResponse, bool hadRetryableError, int numberRetries)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpRequestMessage | httpRequest | The HTTP request data sent. |
| HttpResponseMessage | httpResponse | The HTTP response data if the HTTP request succeeded. |
| bool | hadRetryableError | If the HTTP request had a retryable error. |
| int | numberRetries | Number of retries already made. |
Returns
| Type | Description |
|---|---|
| RetryResponse | A RetryResponse indicating if should retry and the time to delay before next retry. |