Esempio n. 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);
        }
Esempio n. 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);
 }