예제 #1
0
        public async Task DeleteAsync(string name)
        {
            #region Preconditions

            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            #endregion

            var request = new DeleteObjectRequest(client.Host, bucketName, name);

            await client.DeleteObjectAsync(request).ConfigureAwait(false);
        }
예제 #2
0
 public async Task DeleteAsync(string name)
 {
     await client.DeleteObjectAsync(
         new DeleteObjectRequest(client.Host, bucketName, name)
         ).ConfigureAwait(false);
 }
예제 #3
0
        public Task DeleteAsync(string name, string version = null)
        {
            var request = new DeleteObjectRequest(client.Region, bucketName, name, version);

            return(client.DeleteObjectAsync(request));
        }