コード例 #1
0
ファイル: App.xaml.cs プロジェクト: garapani/outlook
        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)
            {
            }
        }
コード例 #2
0
        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);
                }
            }
        }