private async void App_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { try { LimitedCrashExtraDataList extrasExtraDataList = new LimitedCrashExtraDataList { new CrashExtraData("Outlook India", e.ExceptionObject.Message), new CrashExtraData("Outlook India", e.ExceptionObject.StackTrace), }; BugSenseResponseResult sendResult = await BugSenseHandler.Instance.SendExceptionAsync(e.ExceptionObject, extrasExtraDataList); } catch (Exception) { } }
private async void App_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { try { LimitedCrashExtraDataList extrasExtraDataList = new LimitedCrashExtraDataList { new CrashExtraData("The Hindu", e.ExceptionObject.Message), new CrashExtraData("The Hindu", e.ExceptionObject.StackTrace), }; BugSenseResponseResult sendResult = await BugSenseHandler.Instance.SendExceptionAsync(e.ExceptionObject, extrasExtraDataList); } catch (Exception exception) { if (Debugger.IsAttached) { Debug.WriteLine("App.xaml.cs:" + exception); } } }