Google API Client Library for .NET  1.10.0
Public Member Functions | Properties | List of all members
Google.Apis.Services.BaseClientService.Initializer Class Reference

An initializer class for the client service. More...

Public Member Functions

 Initializer ()
 Constructs a new initializer with default values. More...
 

Properties

IHttpClientFactory HttpClientFactory [get, set]
 Gets or sets the factory for creating System.Net.Http.HttpClient instance. If this property is not set the service uses a new Google.Apis.Http.HttpClientFactory instance. More...
 
IConfigurableHttpClientInitializer HttpClientInitializer [get, set]
 Gets or sets a HTTP client initializer which is able to customize properties on Google.Apis.Http.ConfigurableHttpClient and Google.Apis.Http.ConfigurableMessageHandler. More...
 
ExponentialBackOffPolicy DefaultExponentialBackOffPolicy [get, set]
 Get or sets the exponential back-off policy used by the service. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP response. If the value is set to None, no exponential back-off policy is used, and it's up to the user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler). More...
 
bool GZipEnabled [get, set]
 Gets or sets whether this service supports GZip. Default value is true. More...
 
ISerializer Serializer [get, set]
 Gets or sets the serializer. Default value is Google.Apis.Json.NewtonsoftJsonSerializer. More...
 
string ApiKey [get, set]
 Gets or sets the API Key. Default value is null. More...
 
string ApplicationName [get, set]
 Gets or sets Application name to be used in the User-Agent header. Default value is null. More...
 
uint MaxUrlLength [get, set]
 Maximum allowed length of a URL string for GET requests. Default value is 2048. If the value is set to 0, requests will never be modified due to URL string length. More...
 

Detailed Description

An initializer class for the client service.

Constructor & Destructor Documentation

Google.Apis.Services.BaseClientService.Initializer.Initializer ( )
inline

Constructs a new initializer with default values.

Property Documentation

string Google.Apis.Services.BaseClientService.Initializer.ApiKey
getset

Gets or sets the API Key. Default value is null.

string Google.Apis.Services.BaseClientService.Initializer.ApplicationName
getset

Gets or sets Application name to be used in the User-Agent header. Default value is null.

ExponentialBackOffPolicy Google.Apis.Services.BaseClientService.Initializer.DefaultExponentialBackOffPolicy
getset

Get or sets the exponential back-off policy used by the service. Default value is UnsuccessfulResponse503, which means that exponential back-off is used on 503 abnormal HTTP response. If the value is set to None, no exponential back-off policy is used, and it's up to the user to configure the Google.Apis.Http.ConfigurableMessageHandler in an Google.Apis.Http.IConfigurableHttpClientInitializer to set a specific back-off implementation (using Google.Apis.Http.BackOffHandler).

bool Google.Apis.Services.BaseClientService.Initializer.GZipEnabled
getset

Gets or sets whether this service supports GZip. Default value is true.

IHttpClientFactory Google.Apis.Services.BaseClientService.Initializer.HttpClientFactory
getset

Gets or sets the factory for creating System.Net.Http.HttpClient instance. If this property is not set the service uses a new Google.Apis.Http.HttpClientFactory instance.

IConfigurableHttpClientInitializer Google.Apis.Services.BaseClientService.Initializer.HttpClientInitializer
getset

Gets or sets a HTTP client initializer which is able to customize properties on Google.Apis.Http.ConfigurableHttpClient and Google.Apis.Http.ConfigurableMessageHandler.

uint Google.Apis.Services.BaseClientService.Initializer.MaxUrlLength
getset

Maximum allowed length of a URL string for GET requests. Default value is 2048. If the value is set to 0, requests will never be modified due to URL string length.

ISerializer Google.Apis.Services.BaseClientService.Initializer.Serializer
getset

Gets or sets the serializer. Default value is Google.Apis.Json.NewtonsoftJsonSerializer.


The documentation for this class was generated from the following file: