protected override void Dispose(bool disposing)
 {
     AmazonS3Util.DeleteS3BucketWithObjects(s3EncryptionClientMetadataModeSymmetricWrap, bucketName);
     s3EncryptionClientMetadataModeSymmetricWrap.Dispose();
     s3EncryptionClientFileModeSymmetricWrap.Dispose();
     s3EncryptionClientMetadataModeAsymmetricWrap.Dispose();
     s3EncryptionClientFileModeAsymmetricWrap.Dispose();
     s3EncryptionClientMetadataModeKMS.Dispose();
     s3EncryptionClientFileModeKMS.Dispose();
     if (File.Exists(filePath))
     {
         File.Delete(filePath);
     }
 }
Ejemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     EncryptionTestsUtils.CallAsyncTask(
         UtilityMethods.DeleteBucketWithObjectsAsync(s3EncryptionClientMetadataModeAsymmetricWrap, bucketName));
     s3EncryptionClientMetadataModeAsymmetricWrap.Dispose();
     s3EncryptionClientFileModeAsymmetricWrap.Dispose();
     s3EncryptionClientMetadataModeSymmetricWrap.Dispose();
     s3EncryptionClientFileModeSymmetricWrap.Dispose();
     s3EncryptionClientMetadataModeKMS.Dispose();
     s3EncryptionClientFileModeKMS.Dispose();
     if (File.Exists(filePath))
     {
         File.Delete(filePath);
     }
 }