CleanBucket() public static method

public static CleanBucket ( AmazonS3Client client, string bucketName ) : void
client Amazon.S3.AmazonS3Client
bucketName string
return void
 public void TearDown()
 {
     S3TestUtils.CleanBucket(Client, BucketName);
     MissingAPILambdaFunctions.DeleteBucket(BucketName, TestRunner.RegionEndpoint);
     S3TestUtils.CleanBucket(Client, VersionedBucketName);
     MissingAPILambdaFunctions.DeleteBucket(VersionedBucketName, TestRunner.RegionEndpoint);
 }
Beispiel #2
0
        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;
            }
        }