Class ExponentialBackOffInitializer (1.50.0)

public class ExponentialBackOffInitializer : object, IConfigurableHttpClientInitializer

An initializer which adds exponential back-off as exception handler and \ or unsuccessful response handler by the given ExponentialBackOffPolicy.

Inheritance

Object > ExponentialBackOffInitializer

Namespace

Google.Apis.Http

Assembly

Google.Apis.Core.dll

Constructors

ExponentialBackOffInitializer(ExponentialBackOffPolicy, Func<BackOffHandler>)

public ExponentialBackOffInitializer(ExponentialBackOffPolicy policy, Func<BackOffHandler> createBackOff)

Constructs a new back-off initializer with the given policy and back-off handler create function.

Parameters
NameDescription
policyExponentialBackOffPolicy
createBackOffFunc<BackOffHandler>

Methods

Initialize(ConfigurableHttpClient)

public void Initialize(ConfigurableHttpClient httpClient)

Initializes a HTTP client after it was created.

Parameter
NameDescription
httpClientConfigurableHttpClient

Extension Method