/// <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); }
public Task RemoveAllBucketNotificationsAsync(string bucketName, CancellationToken cancellationToken = default(CancellationToken)) { RemoveAllBucketNotificationsArgs args = new RemoveAllBucketNotificationsArgs() .WithBucket(bucketName); return(this.RemoveAllBucketNotificationsAsync(args, cancellationToken)); }
/// <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); }