C# Класс Amazon.Runtime.ClientConfig

This class is the base class of all the configurations settings to connect to a service.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
MaxTimeout System.TimeSpan

Private Properties

Свойство Тип Описание
GetDefaultRegionEndpoint RegionEndpoint
GetUrl string

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Initialize ( ) : void

Приватные методы

Метод Описание
GetDefaultRegionEndpoint ( ) : RegionEndpoint
GetUrl ( RegionEndpoint regionEndpoint, string regionEndpointServiceName, bool useHttp, bool useDualStack ) : string

Описание методов

ClientConfig() публичный метод

public ClientConfig ( ) : System
Результат System

DetermineServiceURL() публичный метод

public DetermineServiceURL ( ) : string
Результат string

GetTimeoutValue() публичный статический метод

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
Результат TimeSpan?

GetWebProxy() публичный метод

Returns a WebProxy instance configured to match the proxy settings in the client configuration.
public GetWebProxy ( ) : IWebProxy
Результат IWebProxy

GetWebProxy() публичный метод

Returns a WebProxy instance configured to match the proxy settings in the client configuration.
public GetWebProxy ( ) : WebProxy
Результат System.Net.WebProxy

Initialize() защищенный метод

protected Initialize ( ) : void
Результат void

SetUseNagleIfAvailable() публичный метод

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
Результат void

SetWebProxy() публичный метод

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
Результат void

SetWebProxy() публичный метод

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
Результат void

Validate() публичный метод

Performs validation on this config object. Throws exception if any of the required values are missing/invalid.
public Validate ( ) : void
Результат void

ValidateTimeout() публичный статический метод

public static ValidateTimeout ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Результат void

Описание свойств

MaxTimeout публичное статическое свойство

public static TimeSpan,System MaxTimeout
Результат System.TimeSpan