Class HttpTimeoutInitializer
Used for specifying a custom timeout for a Configurable
Implements
Inherited Members
Namespace: Google.Apis.Core
Assembly: Google.Apis.Core.dll
Syntax
public sealed class HttpTimeoutInitializer : IConfigurableHttpClientInitializer
Constructors
HttpTimeoutInitializer(TimeSpan)
Creates a new instance with the given timeout.
Declaration
public HttpTimeoutInitializer(TimeSpan httpClientTimeout)
Parameters
Type | Name | Description |
---|---|---|
Time |
httpClientTimeout |
Remarks
This initializer relies on ConfigurablehttpClientTimeout
is not validated in this constructor.
It's when this initializer is applied to a Configurable
Properties
HttpClientTimeout
The timeout to set on Configurable
Declaration
public TimeSpan HttpClientTimeout { get; }
Property Value
Type | Description |
---|---|
Time |
Methods
Initialize(ConfigurableHttpClient)
Initializes a HTTP client after it was created.
Declaration
public void Initialize(ConfigurableHttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
Configurable |
httpClient |