WaitForObject() public static method

public static WaitForObject ( IAmazonS3 client, string bucketName, string key, int maxSeconds ) : void
client IAmazonS3
bucketName string
key string
maxSeconds int
return void
        private string CreateBucketAndObject(AmazonS3Client client)
        {
            var bucketName = S3TestUtils.CreateBucketWithWait(client);

            client.PutObject(new PutObjectRequest
            {
                BucketName  = bucketName,
                Key         = TestKey,
                ContentBody = TestContent
            });
            S3TestUtils.WaitForObject(client, bucketName, TestKey, 30);
            return(bucketName);
        }