我正在尝试实现一个全局异常处理程序,当下面的行生成一个错误时,问题就出现了,它只是在调试器中停止。
var list = await _repository.GetAllAsync<ContactView>();
Application.Current.DispatcherUnhandledException +=
new DispatcherUnhandledExceptionEventHandler(MainThreadExceptionHandler);
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(DomainExceptionHandler);发布于 2015-09-18 19:19:28
尝试链接到TaskScheduler.UnobservedTaskException,如下所示:
TaskScheduler.UnobservedTaskException += ( sender, eventArgs ) =>
{
...
};https://stackoverflow.com/questions/32651830
复制相似问题