Пример #1
0
 private static void LogCallbackHandler(string condition, string stack, LogType type)
 {
     if (type == LogType.Exception)
     {
         BugtraceAgent.HandleException(condition, stack);
     }
 }
Пример #2
0
    private static void UncaughtExceptionHandler(object sender, UnhandledExceptionEventArgs args)
    {
        Exception ex = (Exception)args.get_ExceptionObject();

        if (ex != null)
        {
            BugtraceAgent.HandleException(ex.get_Message(), ex.get_StackTrace());
        }
    }