C# Class Amazon.Runtime.ClientConfig

This class is the base class of all the configurations settings to connect to a service.
Afficher le fichier Open project: aws/aws-sdk-net Class Usage Examples

Méthodes publiques

Свойство Type Description
MaxTimeout System.TimeSpan

Private Properties

Свойство Type Description
GetDefaultRegionEndpoint RegionEndpoint
GetUrl string

Méthodes publiques

Méthode Description
ClientConfig ( ) : System
DetermineServiceURL ( ) : string
GetTimeoutValue ( System.TimeSpan clientTimeout, System.TimeSpan requestTimeout ) : TimeSpan?

Returns the request timeout value if its value is set, else returns client timeout value.

GetWebProxy ( ) : IWebProxy

Returns a WebProxy instance configured to match the proxy settings in the client configuration.

GetWebProxy ( ) : WebProxy

Returns a WebProxy instance configured to match the proxy settings in the client configuration.

SetUseNagleIfAvailable ( bool useNagle ) : void

Enable or disable the Nagle algorithm on the underlying http client. This method is not intended to be called by consumers of the AWS SDK for .NET

SetWebProxy ( IWebProxy proxy ) : void

Unpacks the host, port and any credentials info into the instance's proxy-related fields. Unlike the SetWebProxy implementation on .NET 3.5/4.5,the Host and the Port are not reconstructed from the input proxyuri

SetWebProxy ( WebProxy proxy ) : void

Unpacks the host, port and any credentials info into the instance's proxy-related fields.

Validate ( ) : void

Performs validation on this config object. Throws exception if any of the required values are missing/invalid.

ValidateTimeout ( System.TimeSpan timeout ) : void

Méthodes protégées

Méthode Description
Initialize ( ) : void

Private Methods

Méthode Description
GetDefaultRegionEndpoint ( ) : RegionEndpoint
GetUrl ( RegionEndpoint regionEndpoint, string regionEndpointServiceName, bool useHttp, bool useDualStack ) : string

Method Details

ClientConfig() public méthode

public ClientConfig ( ) : System
Résultat System

DetermineServiceURL() public méthode

public DetermineServiceURL ( ) : string
Résultat string

GetTimeoutValue() public static méthode

Returns the request timeout value if its value is set, else returns client timeout value.
public static GetTimeoutValue ( System.TimeSpan clientTimeout, System.TimeSpan requestTimeout ) : TimeSpan?
clientTimeout System.TimeSpan
requestTimeout System.TimeSpan
Résultat TimeSpan?

GetWebProxy() public méthode

Returns a WebProxy instance configured to match the proxy settings in the client configuration.
public GetWebProxy ( ) : IWebProxy
Résultat IWebProxy

GetWebProxy() public méthode

Returns a WebProxy instance configured to match the proxy settings in the client configuration.
public GetWebProxy ( ) : WebProxy
Résultat System.Net.WebProxy

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void

SetUseNagleIfAvailable() public méthode

Enable or disable the Nagle algorithm on the underlying http client. This method is not intended to be called by consumers of the AWS SDK for .NET
public SetUseNagleIfAvailable ( bool useNagle ) : void
useNagle bool
Résultat void

SetWebProxy() public méthode

Unpacks the host, port and any credentials info into the instance's proxy-related fields. Unlike the SetWebProxy implementation on .NET 3.5/4.5,the Host and the Port are not reconstructed from the input proxyuri
public SetWebProxy ( IWebProxy proxy ) : void
proxy IWebProxy The proxy details
Résultat void

SetWebProxy() public méthode

Unpacks the host, port and any credentials info into the instance's proxy-related fields.
public SetWebProxy ( WebProxy proxy ) : void
proxy System.Net.WebProxy The proxy details
Résultat void

Validate() public méthode

Performs validation on this config object. Throws exception if any of the required values are missing/invalid.
public Validate ( ) : void
Résultat void

ValidateTimeout() public static méthode

public static ValidateTimeout ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Résultat void

Property Details

MaxTimeout public_oe static_oe property

public static TimeSpan,System MaxTimeout
Résultat System.TimeSpan