コード例 #1
0
        public async Task CopyObject()
        {
            //Upload an object to copy
            string sourceKey      = nameof(CopyObject);
            string destinationKey = sourceKey + "2";

            await UploadAsync(sourceKey).ConfigureAwait(false);

            CopyObjectResponse copyResp = await ObjectClient.CopyObjectAsync(BucketName, sourceKey, BucketName, destinationKey).ConfigureAwait(false);

            Assert.Equal(200, copyResp.StatusCode);

            await AssertAsync(destinationKey).ConfigureAwait(false);
        }