RingCentral .Net SDK
Public Attributes | Static Public Attributes | List of all members
RingCentral.Net.Retry.RetryOptions Class Reference
Collaboration diagram for RingCentral.Net.Retry.RetryOptions:
Collaboration graph
[legend]

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: