Beispiel #1
0
        /// <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));
        }
Beispiel #2
0
        /// <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());
        }