Class ExponentialBackOffInitializer (1.69.0)

public class ExponentialBackOffInitializer : IConfigurableHttpClientInitializer

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

Inheritance

object > ExponentialBackOffInitializer

Namespace

Google.Apis.Http

Assembly

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

Extension Method