RetryHandler
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Utility.
HTTP handler for the API client that adds a timeout per attempt and retries failed requests with a doubling delay (2, 4, ... seconds).
- Listed in Alta.Api.DataTransferModels
- Inherits or implements
HttpClientHandler
Constructors
| Member | What it is |
|---|---|
RetryHandler(float timeOutInSeconds, int maxRetryAmount = 3) | Creates a RetryHandler from timeOutInSeconds and maxRetryAmount. |
Fields
3 private and internal fields
Events
| Member | What it is |
|---|---|
static event Action<HttpRequestMessage> TimedOut | Raised when every attempt at a request timed out. The low-level API client listens to it. |