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