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); }
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); }