public void TearDown() { S3TestUtils.CleanBucket(Client, BucketName); MissingAPILambdaFunctions.DeleteBucket(BucketName, TestRunner.RegionEndpoint); S3TestUtils.CleanBucket(Client, VersionedBucketName); MissingAPILambdaFunctions.DeleteBucket(VersionedBucketName, TestRunner.RegionEndpoint); }
public void TearDown() { S3TestUtils.CleanBucket(Client, BucketName); AutoResetEvent ars = new AutoResetEvent(false); Exception exception = null; Client.DeleteBucketAsync(BucketName, (result) => { if (result.Exception != null) { exception = result.Exception; } ars.Set(); }); ars.WaitOne(); if (exception != null) { throw exception; } }