public class ExponentialBackOffInitializer : IConfigurableHttpClientInitializerAn initializer which adds exponential back-off as exception handler and \ or unsuccessful response handler by the given ExponentialBackOffPolicy.
Implements
IConfigurableHttpClientInitializerNamespace
Google.Apis.HttpAssembly
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.
If policy has the RecommendedOrDefault flag set,
the BackOffHandler will be set for handling both exceptions and HTTP Status codes.
| 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 |