private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { LogHelper.LogError("应用程序未处理异常", e.Exception); }
private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { LogHelper.LogError("应用程序未处理异常", e.ExceptionObject as Exception); }