var builder = new UriBuilder(String.Join("/", BaseAddress, container, objectName));
return builder;
}
+
+ public Dictionary<string, string> GetMeta(string metaPrefix)
+ {
+ if (String.IsNullOrWhiteSpace(metaPrefix))
+ throw new ArgumentNullException("metaPrefix");
+ Contract.EndContractBlock();
+
+ var keys = ResponseHeaders.AllKeys.AsQueryable();
+ var dict = (from key in keys
+ where key.StartsWith(metaPrefix)
+ let name = key.Substring(metaPrefix.Length)
+ select new { Name = name, Value = ResponseHeaders[key] })
+ .ToDictionary(t => t.Name, t => t.Value);
+ return dict;
+ }
}
public class RetryException:Exception