Added the following to the AppDelegate FinishedLaunching but was wondering how to test? Trying to just throw an exception that either of this will catch
// Catch exceptions from all threads in the AppDomain.
AppDomain.CurrentDomain.UnhandledException += async (sender, args) => {
await DialogService.ShowUnhandledExceptionMessage();
HandleUnhandledException(args.ExceptionObject as Exception);
};
// Catch exceptions from each AppDomain that uses a task scheduler for async operations.
TaskScheduler.UnobservedTaskException += async (sender, args) => {
await DialogService.ShowUnhandledExceptionMessage();
HandleUnhandledException(args.Exception);
};