How to handle all unhandled exceptions when using Task Parallel Library?

I think TaskScheduler.UnobservedTaskException Event is what you want: Occurs when a faulted Task’s unobserved exception is about to trigger exception escalation policy, which, by default, would terminate the process. So, this event is similar to DomainUnhandledException that you mentioned in your question but occurs only for tasks. BTW note, that unobserved-exceptions policy (yeah, this is … Read more