public void ListBucketspagingTest() { var lbRequest = new ListBucketsRequest { Prefix = _className, MaxKeys = 2 }; while (true) { var ibRes = _ossClient.ListBuckets(lbRequest); if (ibRes.IsTruncated == true) { lbRequest.Marker = ibRes.NextMaker; } else { break; } } }
public static Task <ListBucketsResult> ListBucketsAsync(this IOss client, ListBucketsRequest listBucketsRequest) { return(Task.Factory.StartNew(() => client.ListBuckets(listBucketsRequest))); }