-
-
Save eskye/5492b216152a943b80110feeb45bd4bf to your computer and use it in GitHub Desktop.
List and Create Bucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<int> UploadToCloud() | |
{ | |
// Listing buckets. | |
var bucketService = new BucketService(scope); | |
var listBucketOptions = new BucketListOptions(); | |
var buckets = await bucketService.ListBucketsAsync(listBucketOptions); | |
foreach (BucketInfo b in buckets.Items) | |
{ | |
Console.WriteLine(b.Name); | |
} | |
var restrictedBucketService = new BucketService(scope); | |
var newBucketName = "flureebucket"; | |
var bucket = await restrictedBucketService.OpenBucketAsync(newBucketName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment