Esempio n. 1
0
 public static IEnumerable <KeyValuePair <string, string> > ToDictionary(this MessageHeaders source)
 {
     return(source.Headers
            .ToLookup(keyIs => keyIs.Key, valueIs => valueIs.Value)
            .ToDictionary(keyIs => keyIs.Key, valueIs => valueIs.FirstOrDefault()));
 }
Esempio n. 2
0
 public static void CopyFrom(this IDictionary <string, object> target, MessageHeaders source)
 {
     target.CopyFrom(source.ToDictionary());
 }