Exemple #1
0
 public Dictionary <string, string> GetBucketDetails()
 {
     return(Buckets.Where(w => !string.IsNullOrWhiteSpace(w)).Select(bucket => bucket.Split(':')).ToDictionary(bucketDetails => bucketDetails[0].Trim(), bucketDetails => bucketDetails[1]));
 }
Exemple #2
0
 private string GetBucketKey(string bucketName)
 {
     return(Buckets.Where(b => b.Name == bucketName).Select(b => b.Key).FirstOrDefault());
 }