RingCentral .Net SDK
Loading...
Searching...
No Matches
RingCentral.Net.Retry.RetryOptions Class Reference
Collaboration diagram for RingCentral.Net.Retry.RetryOptions:

Public Attributes

Func< RestException, int, int > retryInterval
Func< RestException, int, bool > shouldRetry

Static Public Attributes

static readonly RetryOptions DefaultInstance = new RetryOptions()

Member Data Documentation

◆ retryInterval

Func<RestException, int, int> RingCentral.Net.Retry.RetryOptions.retryInterval
Initial value:
= (restException, retriesAttempted) =>
(int)(60 * 1000 * Math.Pow(2, retriesAttempted))

◆ shouldRetry

Func<RestException, int, bool> RingCentral.Net.Retry.RetryOptions.shouldRetry
Initial value:
= (restException, retriesAttempted) =>
retriesAttempted < 3 &&
Array.Exists(new[] { 429, 503 },
element => (HttpStatusCode)element == restException.httpResponseMessage.StatusCode)

The documentation for this class was generated from the following file:
  • RingCentral.Net.Retry/Definitions.cs