Class ExponentialBackOffInitializer
An initializer which adds exponential back-off as exception handler and \ or unsuccessful response handler by the given ExponentialBackOffPolicy.
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.
Declaration
public ExponentialBackOffInitializer(ExponentialBackOffPolicy policy, Func<BackOffHandler> createBackOff)
Parameters
Type | Name | Description |
---|---|---|
ExponentialBackOffPolicy | policy | |
Func<BackOffHandler> | createBackOff |
Methods
Initialize(ConfigurableHttpClient)
Initializes a HTTP client after it was created.
Declaration
public void Initialize(ConfigurableHttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableHttpClient | httpClient |