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.8.0.0 (2.8.0)
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 propertyEnableCrcCheck
Gets or sets a value indicating whether this ClientConfiguration enable crc check. When EnalbeMD5Check is set true, MD5 will be checked and CRC check will be skipped whenever MD5 is applicable.
Public propertyEnalbeMD5Check
Flag of enabling MD5 checksum. When EnalbeMD5Check is set true, MD5 will be checked and CRC check will be skipped whenever MD5 is applicable.
Public propertyIsCname
If the endpoint is the CName. If it's CName, ListBuckets is not supported.
Public propertyMaxErrorRetry
Max error retry count
Public propertyMaxPartCachingSize
Gets or sets the size of the max part caching size In multipart upload (resumable upload), if the part size is no bigger than MaxPartCachingSize, it will cache the whole part data before sending the data out.
Public propertyPreReadBufferCount
Gets or sets the pre read buffer count in resumable upload. The max value could be the same size of MaxResumableUploadThreads;
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
Public propertyUseSingleThreadReadInResumableUpload
When uploading a file with resumable upload, the default behavior is to read the source file in multiple-threading. But in old HDD, single thread read may be faster. And when the read speed is the bottleneck, try to change this parameter to compare the result.
Top
See Also