Exemplo n.º 1
0
        public static async Task <DeleteObjectResponse> DeleteObjectAsync(this IS3ObjectClient client, string bucketName, string resource, string versionId = null, MfaAuthenticationBuilder mfa = null, CancellationToken token = default)
        {
            Validator.RequireNotNull(client);
            Validator.RequireNotNull(bucketName);
            Validator.RequireNotNull(resource);

            DeleteObjectResponse resp = await client.DeleteObjectAsync(bucketName, resource, req =>
            {
                req.VersionId = versionId;
                req.Mfa       = mfa;
            }, token).ConfigureAwait(false);

            return(resp);
        }
Exemplo n.º 2
0
 public Task <DeleteObjectResponse> DeleteObjectAsync(string bucketName, string resource, Action <DeleteObjectRequest> config = null, CancellationToken token = default)
 {
     return(_objectClient.DeleteObjectAsync(bucketName, resource, config, token));
 }