public class ExponentialBackOffInitializer : IConfigurableHttpClientInitializer
An initializer which adds exponential back-off as exception handler and \ or unsuccessful response handler by the given ExponentialBackOffPolicy.
Implements
IConfigurableHttpClientInitializerNamespace
GoogleApisHttpAssembly
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 | |
---|---|
Name | Description |
policy |
ExponentialBackOffPolicy |
createBackOff |
FuncBackOffHandler |
Methods
Initialize(ConfigurableHttpClient)
public void Initialize(ConfigurableHttpClient httpClient)
Initializes a HTTP client after it was created.
Parameter | |
---|---|
Name | Description |
httpClient |
ConfigurableHttpClient |