Exemple #1
0
        // Public members

        public static void Add(this ILogHeaderCollection headers, LogHeaderKey key, Func <string> getter)
        {
            headers.Add(LogHeaderKeyToString(key), getter);
        }
Exemple #2
0
 public static bool TryGetValue(this ILogHeaderCollection headers, LogHeaderKey key, out string value)
 {
     return(headers.TryGetValue(LogHeaderKeyToString(key), out value));
 }
Exemple #3
0
 public static bool Remove(this ILogHeaderCollection headers, LogHeaderKey key)
 {
     return(headers.Remove(LogHeaderKeyToString(key)));
 }
Exemple #4
0
 public static bool ContainsKey(this ILogHeaderCollection headers, LogHeaderKey key)
 {
     return(headers.ContainsKey(LogHeaderKeyToString(key)));
 }
Exemple #5
0
 public static void Add(this ILogHeaderCollection headers, LogHeaderKey key, string value)
 {
     headers.Add(key, () => value);
 }