Click or drag to resize
ClientConfiguration Class
The client configuration that specifies the network parameters.
Inheritance Hierarchy
SystemObject
  Aliyun.OSS.CommonClientConfiguration

Namespace: Aliyun.OSS.Common
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.4.0 (2.5.4)
Syntax
public class ClientConfiguration

The ClientConfiguration type exposes the following members.

Constructors
  NameDescription
Public methodClientConfiguration
Initializes a new instance of the ClientConfiguration class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetCustomEpochTicks

Sets the custom base time

OSS's token validation logic depends on the time. It requires that there's no more than 15 min time difference between client and OSS server. This API calculates the difference between local time to epoch time. Later one other APIs use this difference to offset the local time before sending request to OSS.

Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberConnectionLimit
Max Http connection connection count. By default it's 512.
Top
Properties
  NameDescription
Public propertyConnectionTimeout
Connection timeout in milliseconds
Public propertyDirectWriteStreamThreshold
Gets or sets the direct write stream threshold. The theshold is the file size threshold that when the uploading file size is more than this value, the HttpWebRequest will not use write buffer to save the memory.
Public propertyEnalbeMD5Check
Flag of enabling MD5 checksum.
Public propertyIsCname
If the endpoint is the CName. If it's CName, ListBuckets is not supported.
Public propertyMaxErrorRetry
Max error retry count
Public propertyProgressUpdateInterval
The progress update interval in terms of data upload/download's delta in bytes. By default it's 4096 bytes.
Public propertyProtocol
Protocols used to access OSS (HTTP or HTTPS)
Public propertyProxyDomain
The proxy user name's domain for authentication
Public propertyProxyHost
Proxy host
Public propertyProxyPassword
Proxy user password
Public propertyProxyPort
Proxy port
Public propertyProxyUserName
Proxy user name
Public propertyTickOffset
Gets the difference between customized epoch time and local time, in seconds
Public propertyUserAgent
User-Agent in requests to OSS
Top
See Also