Click or drag to resize
ClientConfiguration Class
表示访问阿里云服务的配置信息。
Inheritance Hierarchy
SystemObject
  Aliyun.OSS.CommonClientConfiguration

Namespace: Aliyun.OSS.Common
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
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

设置自定义基准时间。

由于OSS的token校验是时间相关的,可能会因为终端系统时间不准导致无法访问OSS服务。 通过该接口设置自定义Epoch秒数,SDK计算出本机当前时间与自定义时间的差值,之后的 每次请求时间均加上该差值,以达到时间校验的目的。

Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberConnectionLimit
HttpWebRequest最大的并发连接数目。
Top
Properties
  NameDescription
Public propertyConnectionTimeout
获取或设置连接超时时间,单位为毫秒。
Public propertyEnalbeMD5Check
是否开启MD5校验,默认开启
Public propertyIsCname
获取或设置请求的Endpoint是否是cname 如果是cname,不支持ListBuckets操作
Public propertyMaxErrorRetry
获取或设置请求发生错误时最大的重试次数。
Public propertyProgressUpdateInterval
获取或设置上传/下载回调更新间隔,单位byte,默认4096bytes。
Public propertyProtocol
获取或设置请求OSS服务时采用的通信协议。
Public propertyProxyDomain
获取或设置代理服务器授权用户所在的域。
Public propertyProxyHost
获取或设置代理服务器的地址。
Public propertyProxyPassword
获取或设置密码。
Public propertyProxyPort
获取或设置代理服务器的端口。
Public propertyProxyUserName
获取或设置用户名。
Public propertyTickOffset
获取自定义基准时间与本地时间的时差值,单位为秒。
Public propertyUserAgent
获取访问请求的User-Agent。
Top
See Also