Class S3HttpClientFactory
An Http client Factory example to use or surcharge if a custom S3 connection handler or a custom http client is needed.
Inheritance
S3HttpClientFactory
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class S3HttpClientFactory : HttpClientFactory
Constructors
S3HttpClientFactory()
S3HttpClientFactory Constructor.
Declaration
[Obsolete("This function is not implemented in the .NET framework 4.5")]
public S3HttpClientFactory()
Methods
CreateClientHandler()
The HttpClientHandler Factory function. This function can be override to define a new client handler.
Declaration
protected virtual HttpClientHandler CreateClientHandler()
Returns
Type | Description |
---|---|
HttpClientHandler | The Http client handler used to create the HttpClient. |
CreateHttpClient(IClientConfig)
The CreateHttpClient function used by S3 to retrieve a new HttpClient every request.
Declaration
public override HttpClient CreateHttpClient(IClientConfig clientConfig)
Parameters
Type | Name | Description |
---|---|---|
IClientConfig | clientConfig | The client configuration to parse. |
Returns
Type | Description |
---|---|
HttpClient | The HttpClient used by S3. |