Sends an
HttpRequestMessage
with exponential back-off.
- Namespace
- Statiq
.Testing - Containing Type
- TestExecutionContext
- Implements
Syntax
public Task<HttpResponseMessage> SendHttpRequestWithRetryAsync(Func<HttpRequestMessage> requestFactory)
Parameters
Name | Type | Description |
---|---|---|
requestFactory | Func |
A factory that creates the request message to send (a fresh message is needed for each request). |
Return Value
Type | Description |
---|---|
Task |
The response. |