Exemplo n.º 1
0
 private void SetStack(IEnumerable <ExceptionStack> exceptionStack)
 {
     if (exceptionStack == null || exceptionStack.Count() == 0)
     {
         return;
     }
     foreach (var exception in exceptionStack)
     {
         string id    = exception.SourceCode;
         var    value = SourceCode.FromExceptionStack(exception);
         data.Add(id, value);
     }
 }
Exemplo n.º 2
0
 internal SourceCodeData(IEnumerable <BacktraceStackFrame> exceptionStack)
 {
     if (exceptionStack == null || exceptionStack.Count() == 0)
     {
         return;
     }
     foreach (var exception in exceptionStack)
     {
         if (string.IsNullOrEmpty(exception.SourceCode))
         {
             continue;
         }
         string id    = exception.SourceCode;
         var    value = SourceCode.FromExceptionStack(exception);
         data.Add(id, value);
     }
 }