ClientConfiguration Class |
Namespace: Aliyun.OSS.Common
The ClientConfiguration type exposes the following members.
Name | Description | |
---|---|---|
ClientConfiguration | Initializes a new instance of the ClientConfiguration class |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
SetCustomEpochTicks | 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. | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
ConnectionLimit |
Max Http connection connection count. By default it's 512.
|
Name | Description | |
---|---|---|
ConnectionTimeout |
Connection timeout in milliseconds
| |
DirectWriteStreamThreshold |
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.
| |
EnableCrcCheck |
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.
| |
EnalbeMD5Check |
Flag of enabling MD5 checksum.
When EnalbeMD5Check is set true, MD5 will be checked and CRC check will be skipped whenever MD5 is applicable.
| |
IsCname |
If the endpoint is the CName.
If it's CName, ListBuckets is not supported.
| |
MaxErrorRetry |
Max error retry count
| |
MaxPartCachingSize |
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.
| |
PreReadBufferCount |
Gets or sets the pre read buffer count in resumable upload.
The max value could be the same size of MaxResumableUploadThreads;
| |
ProgressUpdateInterval |
The progress update interval in terms of data upload/download's delta in bytes. By default it's 4096 bytes.
| |
Protocol |
Protocols used to access OSS (HTTP or HTTPS)
| |
ProxyDomain |
The proxy user name's domain for authentication
| |
ProxyHost |
Proxy host
| |
ProxyPassword |
Proxy user password
| |
ProxyPort |
Proxy port
| |
ProxyUserName |
Proxy user name
| |
TickOffset |
Gets the difference between customized epoch time and local time, in seconds
| |
UserAgent |
User-Agent in requests to OSS
| |
UseSingleThreadReadInResumableUpload |
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.
|