// Put up dialog to send crash report. private static void SendCrashReport(Exception exception) { if (!crashReported) { crashReported = true; // Only report crash one time. Further ones are likely to be annoying and useless. var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SmtpHost = "mail.purple-pen.org", Port = 587, UserName = "******", Password = "******", EnableSSL = false, TextIntro = MiscText.CrashIntro, TextEmail = MiscText.CrashEmail, TextMessage = MiscText.CrashMessage, TextSend = MiscText.CrashSend, TextSave = MiscText.CrashSave, TextCancel = MiscText.CrashCancel }; reportCrash.Send(exception); } }
public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private void ApplicationThreadException(object sender, ThreadExceptionEventArgs e) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(e.Exception); }
public static void ReportCrashToSingle(Exception err, string targetname) { ReportCrash reportCrash = new ReportCrash { ToEmail = emails.FirstOrDefault(a => a.DisplayName == targetname).Address }; reportCrash.Send(err); }
/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" //Prev: [email protected] }; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage, Silent = silent }; reportCrash.Send(exception); }
private static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = true) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.Send(exception); }
public static void ReportCrashToAll(Exception err) { ReportCrash reportCrash = new ReportCrash(null); foreach (MailAddress email in emails) { reportCrash.ToEmail = email.Address; reportCrash.Send(err); } }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = "llcom错误报告" }; reportCrash.Silent = silent; reportCrash.CaptureScreen = true; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { IncludeScreenshot = true, CaptureScreen = true, DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
internal static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash("*****@*****.**"); reportCrash.CaptureScreen = true; reportCrash.IncludeScreenshot = true; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("87af7b0b-2407-4944-b572-caee9d031325"), }; reportCrash.Send(exception); }
internal static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash("*****@*****.**"); reportCrash.CaptureScreen = true; reportCrash.IncludeScreenshot = true; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("8e1fd37f-a3c3-421b-b959-c6d03e98a38c"), }; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { if (exception.GetType().Equals(new FileLoadException().GetType())) { ATGateUtil.HandleDotNetException(); } else { var reportCrash = new ReportCrash(Properties.Resources.crash_report_email); reportCrash.Send(exception); Environment.Exit(0); } }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("a85ec548-daf5-483b-bbad-1f231e156955"), }; reportCrash.Send(exception); }
public static void SendCrashReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage, DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("Application ID you received from DrDump.com"), OpenReportInBrowser = true } }; reportCrash.Send(exception); }
public static void SendCrashReport(this Exception exception, string developperMessage = "") { var reportCrash = new ReportCrash { DeveloperMessage = developperMessage, ToEmail = "*****@*****.**", DoctorDumpSettings = new DoctorDumpSettings() { ApplicationID = new Guid("2d91c39b-99f9-4eab-bd9f-a7730f2289d2") } }; reportCrash.Send(exception); }
/// <summary> /// Report an exception /// </summary> public static void SendCrashReport(Exception exception) { var reportCrash = new ReportCrash("*****@*****.**") { FromEmail = "*****@*****.**", SmtpHost = "smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true, }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = true) { MessageBox.Show("恭喜你触发了一个BUG!\r\n" + "你获得了去GitHub反馈bug的机会!\r\n" + $"报错信息:{exception.Message}\r\n" + "请在关闭本对话框后耐心等待一会儿,以便自动上传错误信息"); var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.CaptureScreen = true; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "") { try { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); } catch (Exception s) { DataHelpers.ShowMessage(s.Message); return; } }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage, Silent = silent, DoctorDumpSettings = new DoctorDumpSettings { WebProxy = new WebProxy("Web proxy address, if needed"), ApplicationID = new Guid("Application ID you received from DrDump.com"), OpenReportInBrowser = true } }; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage) { var reportCrash = new ReportCrash("*****@*****.**") { AnalyzeWithDoctorDump = true, DeveloperMessage = developerMessage, DoctorDumpSettings = new DoctorDumpSettings() { ApplicationID = applicationID, OpenReportInBrowser = true, // open DrDump report page SendAnonymousReportSilently = true } }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**"); // mail to send crash dumps to reportCrash.DeveloperMessage = developerMessage; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("abac8312-371a-4fad-aa9d-b4b0cd5d11ab"), }; /*var reportCrash = new ReportCrash("Email where you want to receive crash reports.") * { * DeveloperMessage = developerMessage * };*/ reportCrash.Send(exception); }