我使用AppDomain.UnhandledException事件来捕获WPF、控制台和WinForms应用程序中未处理的异常。
AppDomain.UnhandledException
但是同样的代码在Windows服务上不起作用。我该怎么办?