示例#1
0
        /// <summary>
        /// Removes all bucket notification configurations stored on the server.
        /// </summary>
        /// <param name="bucketName">Bucket name</param>
        /// <param name="cancellationToken">Optional cancellation token to cancel the operation</param>
        /// <returns></returns>
        public async Task RemoveAllBucketNotificationsAsync(string bucketName, CancellationToken cancellationToken = default(CancellationToken))
        {
            RemoveAllBucketNotificationsArgs args = new RemoveAllBucketNotificationsArgs()
                                                    .WithBucket(bucketName);

            await this.RemoveAllBucketNotificationsAsync(args, cancellationToken).ConfigureAwait(false);
        }
示例#2
0
        public Task RemoveAllBucketNotificationsAsync(string bucketName, CancellationToken cancellationToken = default(CancellationToken))
        {
            RemoveAllBucketNotificationsArgs args = new RemoveAllBucketNotificationsArgs()
                                                    .WithBucket(bucketName);

            return(this.RemoveAllBucketNotificationsAsync(args, cancellationToken));
        }
示例#3
0
        /// <summary>
        /// Removes all bucket notification configurations stored on the server.
        /// </summary>
        /// <param name="args">RemoveAllBucketNotificationsArgs Arguments Object with information like Bucket name</param>
        /// <param name="cancellationToken">Optional cancellation token to cancel the operation</param>
        /// <returns></returns>
        public async Task RemoveAllBucketNotificationsAsync(RemoveAllBucketNotificationsArgs args, CancellationToken cancellationToken = default(CancellationToken))
        {
            RestRequest request = await this.CreateRequest(args).ConfigureAwait(false);

            await this.ExecuteAsync(this.NoErrorHandlers, request, cancellationToken).ConfigureAwait(false);
        }