/// <inheritdoc/> public IAsyncResult BeginUploadPartCopy(UploadPartCopyRequest uploadPartCopyRequest, AsyncCallback callback, object state) { var cmd = UploadPartCopyCommand.Create(GetServiceClient(), _endpoint, CreateContext(HttpMethod.Put, uploadPartCopyRequest.TargetBucket, uploadPartCopyRequest.TargetKey), uploadPartCopyRequest); return(OssUtils.BeginOperationHelper(cmd, callback, state)); }
/// <inheritdoc/> public UploadPartCopyResult UploadPartCopy(UploadPartCopyRequest uploadPartCopyRequest) { ThrowIfNullRequest(uploadPartCopyRequest); var cmd = UploadPartCopyCommand.Create(GetServiceClient(), _endpoint, CreateContext(HttpMethod.Put, uploadPartCopyRequest.TargetBucket, uploadPartCopyRequest.TargetKey), uploadPartCopyRequest); return(cmd.Execute()); }