C# Class Oss.OssClient

显示文件 Open project: zhongleiyang/OssSDK-.net-4.5 Class Usage Examples

Public Properties

Property Type Description
httpClient System.Net.Http.HttpClient
networkCredential System.Net.NetworkCredential

Public Methods

Method Description
CompleteMultipartUpload ( CompleteMultipartUploadModel completeMultipartUploadModel ) : Task
CreateBucket ( string bucketName ) : Task
DeleteBucket ( string bucketName ) : Task
DeleteMultipartUpload ( MultiUploadRequestData multiUploadObject ) : Task
DeleteObject ( string bucketName, string key ) : Task
GetBucketAcl ( string bucketName ) : Task
GetObject ( GetObjectRequest getObjectRequest, Stream output, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
GetObject ( GetObjectRequest getObjectRequest, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
GetObject ( string bucketName, string key, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
GetObjectMetadata ( string bucketName, string key ) : Task
ListBuckets ( ) : Task>
ListMultiUploadParts ( string buketName, string key, string uploadId ) : Task
ListMultipartUploads ( string bucketName ) : Task
ListObjects ( ListObjectsRequest listObjectsRequest ) : Task
ListObjects ( string bucketName ) : Task
ListObjects ( string bucketName, string prefix ) : Task
MultipartUpload ( MultiUploadRequestData multiUploadObject, Action uploadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
MultipartUploadInitiate ( string bucketName, string key ) : Task
OssClient ( Uri endpoint, string accessId, string accessKey ) : Oss.Deserial
OssClient ( string accessId, string accessKey ) : Oss.Deserial
OssClient ( string endpoint, string accessId, string accessKey ) : Oss.Deserial
PutObject ( string bucketName, string key, Stream content, ObjectMetadata metadata, Action uploadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
SetBucketAcl ( string bucketName, CannedAccessControlList acl ) : Task

Method Details

CompleteMultipartUpload() public method

public CompleteMultipartUpload ( CompleteMultipartUploadModel completeMultipartUploadModel ) : Task
completeMultipartUploadModel Oss.Model.CompleteMultipartUploadModel
return Task

CreateBucket() public method

public CreateBucket ( string bucketName ) : Task
bucketName string
return Task

DeleteBucket() public method

public DeleteBucket ( string bucketName ) : Task
bucketName string
return Task

DeleteMultipartUpload() public method

public DeleteMultipartUpload ( MultiUploadRequestData multiUploadObject ) : Task
multiUploadObject MultiUploadRequestData
return Task

DeleteObject() public method

public DeleteObject ( string bucketName, string key ) : Task
bucketName string
key string
return Task

GetBucketAcl() public method

public GetBucketAcl ( string bucketName ) : Task
bucketName string
return Task

GetObject() public method

public GetObject ( GetObjectRequest getObjectRequest, Stream output, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
getObjectRequest GetObjectRequest
output Stream
downloadProcessCallback Action
cancellationToken System.Threading.CancellationToken
return Task

GetObject() public method

public GetObject ( GetObjectRequest getObjectRequest, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
getObjectRequest GetObjectRequest
downloadProcessCallback Action
cancellationToken System.Threading.CancellationToken
return Task

GetObject() public method

public GetObject ( string bucketName, string key, Action downloadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
bucketName string
key string
downloadProcessCallback Action
cancellationToken System.Threading.CancellationToken
return Task

GetObjectMetadata() public method

public GetObjectMetadata ( string bucketName, string key ) : Task
bucketName string
key string
return Task

ListBuckets() public method

public ListBuckets ( ) : Task>
return Task>

ListMultiUploadParts() public method

public ListMultiUploadParts ( string buketName, string key, string uploadId ) : Task
buketName string
key string
uploadId string
return Task

ListMultipartUploads() public method

public ListMultipartUploads ( string bucketName ) : Task
bucketName string
return Task

ListObjects() public method

public ListObjects ( ListObjectsRequest listObjectsRequest ) : Task
listObjectsRequest ListObjectsRequest
return Task

ListObjects() public method

public ListObjects ( string bucketName ) : Task
bucketName string
return Task

ListObjects() public method

public ListObjects ( string bucketName, string prefix ) : Task
bucketName string
prefix string
return Task

MultipartUpload() public method

public MultipartUpload ( MultiUploadRequestData multiUploadObject, Action uploadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
multiUploadObject MultiUploadRequestData
uploadProcessCallback Action
cancellationToken System.Threading.CancellationToken
return Task

MultipartUploadInitiate() public method

public MultipartUploadInitiate ( string bucketName, string key ) : Task
bucketName string
key string
return Task

OssClient() public method

public OssClient ( Uri endpoint, string accessId, string accessKey ) : Oss.Deserial
endpoint System.Uri
accessId string
accessKey string
return Oss.Deserial

OssClient() public method

public OssClient ( string accessId, string accessKey ) : Oss.Deserial
accessId string
accessKey string
return Oss.Deserial

OssClient() public method

public OssClient ( string endpoint, string accessId, string accessKey ) : Oss.Deserial
endpoint string
accessId string
accessKey string
return Oss.Deserial

PutObject() public method

public PutObject ( string bucketName, string key, Stream content, ObjectMetadata metadata, Action uploadProcessCallback = null, CancellationToken cancellationToken = null ) : Task
bucketName string
key string
content Stream
metadata ObjectMetadata
uploadProcessCallback Action
cancellationToken System.Threading.CancellationToken
return Task

SetBucketAcl() public method

public SetBucketAcl ( string bucketName, CannedAccessControlList acl ) : Task
bucketName string
acl CannedAccessControlList
return Task

Property Details

httpClient public_oe property

public HttpClient,System.Net.Http httpClient
return System.Net.Http.HttpClient

networkCredential public_oe property

public NetworkCredential,System.Net networkCredential
return System.Net.NetworkCredential