Beispiel #1
0
        public async Task CancelUploadAsync(IUpload upload)
        {
            if (upload is null)
            {
                throw new ArgumentNullException(nameof(upload));
            }

            var request = new AbortMultipartUploadRequest(
                host: client.Host,
                bucketName: upload.BucketName,
                key: upload.ObjectName,
                uploadId: upload.UploadId
                );

            await client.AbortMultipartUploadAsync(request).ConfigureAwait(false);
        }