Show / Hide Table of Contents

Class ExponentialBackOffInitializer

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

Inheritance
object
ExponentialBackOffInitializer
Implements
IConfigurableHttpClientInitializer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 RecommendedOrDefault flag set, the BackOffHandler will be set for handling both exceptions and HTTP Status codes.

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

Implements

IConfigurableHttpClientInitializer

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX