ClientSettings 构造函数

重载

ClientSettings(TokenProvider tokenProvider)

Creates a new instance with the given token provider, default retry policy and default operation timeout.

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)

Creates a new instance with the given token provider, retry policy and operation timeout.

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)

Creates a new instance with the given token provider, retry policy and operation timeout.

ClientSettings(TokenProvider tokenProvider)

public ClientSettings(TokenProvider tokenProvider)

Creates a new instance with the given token provider, default retry policy and default operation timeout.

参数

tokenProvider
TokenProvider

TokenProvider instance

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)

public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout)

Creates a new instance with the given token provider, retry policy and operation timeout.

参数

tokenProvider
TokenProvider

TokenProvider instance

retryPolicy
RetryPolicy

RetryPolicy instance

operationTimeout
Duration

default operation timeout to be used for all client operations. Client can override this value by explicitly specifying a timeout in the operation.

ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)

public ClientSettings(TokenProvider tokenProvider, RetryPolicy retryPolicy, Duration operationTimeout, TransportType transportType)

Creates a new instance with the given token provider, retry policy and operation timeout.

参数

tokenProvider
TokenProvider

TokenProvider instance

retryPolicy
RetryPolicy

RetryPolicy instance

operationTimeout
Duration

default operation timeout to be used for all client operations. Client can override this value by explicitly specifying a timeout in the operation.

transportType
TransportType

TransportType instance

适用于