Beispiel #1
0
        private static void ReportCrash(Exception exception)
        {
            try
            {
                var uploader = new HttpsCrashReporterReportUploader();

                var state = new SendRequestState
                {
                    AnonymousData = new AnonymousData
                    {
                        ApplicationGuid = new Guid("e3933a4b-368b-4256-ad42-777bc60a9558"),
                        Exception       = exception,
                        ToEmail         = ""
                    }
                };

                uploader.SendAnonymousReport(SendRequestState.GetClientLib(), state.GetApplication(), state.GetExceptionDescription(true));
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Failed to send crash report :(");
            }
        }
Beispiel #2
0
        private static void ReportCrash(Exception exception)
        {
            try
            {
                using (var uploader = new HttpsCrashReporterReportUploader()) {
                    var state = new SendRequestState
                    {
                        AnonymousData = new AnonymousData
                        {
                            ApplicationGuid = new Guid("dbbb1d35-be49-45e2-b81d-84f1042c455d"),
                            Exception       = exception,
                            ToEmail         = ""
                        }
                    };

                    uploader.SendAnonymousReport(SendRequestState.GetClientLib(), state.GetApplication(), state.GetExceptionDescription(false));
                }
            }
            catch (Exception)
            {
                System.Console.WriteLine("Failed to send crash report :(");
            }
        }
Beispiel #3
0
        private static void ReportCrash(Exception exception)
        {
            try
            {
                using (var uploader = new HttpsCrashReporterReportUploader()) {
                    var state = new SendRequestState
                    {
                        AnonymousData = new AnonymousData
                        {
                            ApplicationGuid = new Guid("e6542474-21df-42f4-826b-15a12764da6f"),
                            Exception       = exception,
                            ToEmail         = ""
                        }
                    };

                    uploader.SendAnonymousReport(SendRequestState.GetClientLib(), state.GetApplication(), state.GetExceptionDescription(false));
                }
            }
            catch (Exception)
            {
                System.Console.WriteLine("Failed to send crash report :(");
            }
        }