Example #1
0
        internal static void AddContext(this Exception e, LogContextEntry entry)
        {
            var list = e.GetContext();

            if (list == null)
            {
                list = new List <LogContextEntry>();
                e.Data["context"] = list;
            }
            list.Add(entry);
        }
Example #2
0
 internal static void AddContext(this Exception e, LogContextEntry entry)
 {
     var list = e.GetContext();
     if (list == null)
     {
         list = new List<LogContextEntry>();
         e.Data["context"] = list;
     }
     list.Add(entry);
 }