private async Task BucketCheck() { if (BucketChecked) { return; } if (await S3Client.DoesS3BucketExistAsync(BucketName)) { BucketChecked = true; return; } throw new InvalidOperationException($"Bucket {BucketName} does not exist"); }
private async Task BucketCheck() { if (BucketChecked) { return; } if (await S3Client.DoesS3BucketExistAsync(BucketName)) { BucketChecked = true; return; } throw new InvalidOperationException($"Bucket {BucketName} does not exist"); }