private static void LogCallbackHandler(string condition, string stack, LogType type) { if (type == LogType.Exception) { BugtraceAgent.HandleException(condition, stack); } }
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()); } }