Beispiel #1
0
 /// <summary>
 /// Performs the given action on each of your buckets without loading the list of
 /// buckets completely into memory.
 /// </summary>
 public void ForEachBucket(Action <Bucket> action)
 {
     using (GetAllBucketsResponse response = new GetAllBucketsRequest(this).GetResponse())
         foreach (Bucket bucket in response.Buckets)
         {
             action(bucket);
         }
 }
Beispiel #2
0
 /// <summary>
 /// Lists all buckets owned by you.
 /// </summary>
 public IList <Bucket> GetAllBuckets()
 {
     using (GetAllBucketsResponse response = new GetAllBucketsRequest(this).GetResponse())
         return(response.Buckets.ToList());
 }