Class ExponentialBackOffInitializer
An initializer which adds exponential back-off as exception handler and \ or unsuccessful response handler by
the given Exponential
Implements
Inherited Members
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public class ExponentialBackOffInitializer : IConfigurableHttpClientInitializer
Constructors
ExponentialBackOffInitializer(ExponentialBackOffPolicy, Func<BackOffHandler>)
Constructs a new back-off initializer with the given policy and back-off handler create function.
If policy
has the Recommended
Declaration
public ExponentialBackOffInitializer(ExponentialBackOffPolicy policy, Func<BackOffHandler> createBackOff)
Parameters
Type | Name | Description |
---|---|---|
Exponential |
policy | |
Func<Back |
createBackOff |
Methods
Initialize(ConfigurableHttpClient)
Initializes a HTTP client after it was created.
Declaration
public void Initialize(ConfigurableHttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
Configurable |
httpClient |