Method GetRetryDelay
GetRetryDelay(Request)
Determines how long to wait between successive retries.
Declaration
TimeSpan GetRetryDelay(Request request)
Parameters
Type | Name | Description |
---|---|---|
Request | request | The Request object describing the running operation. |
Returns
Type | Description |
---|---|
TimeSpan | A time interval to wait before the next retry. |
Remarks
This method is called after ShouldRetry(Request) if
ShouldRetry(Request) returned true. It determines how long
to delay before the operation is retried. The delay is
non-blocking (asynchronous). The delay returned may vary
depending on the current state of the operation, e.g.
RetryCount,
LastException, etc. For example, the
delay could increase with the number of retries performed so far.