|
1 | | -# CrashReporter.NET |
| 1 | +# CrashReporter.NET |
| 2 | + |
2 | 3 | [](https://ci.appveyor.com/project/ravibpatel/crashreporter-net) [](http://paypal.me/rbsoft) |
3 | 4 |
|
4 | 5 | Send crash reports of your classic desktop application developed using .NET Framework directly to your mail's inbox with full exception report, stack trace and screenshot. |
5 | 6 |
|
6 | 7 | ## The nuget package [](https://www.nuget.org/packages/CrashReporter.NET.Official/) [](https://www.nuget.org/packages/CrashReporter.NET.Official/) |
7 | 8 |
|
8 | | -https://www.nuget.org/packages/CrashReporter.NET.Official/ |
9 | | - |
10 | 9 | PM> Install-Package CrashReporter.NET.Official |
11 | 10 |
|
12 | 11 | ## How it works |
13 | 12 |
|
14 | | -CrashReporter.NET uses the exception information like stack trace, exception type, message, source, .NET CLR version, OS version and application version to generate the crash report and send it to developer using email. It uses DoctorDump service (http://drdump.com) to send email to developer. Developers can use their SMTP server to send email too. |
| 13 | +CrashReporter.NET uses the exception information like stack trace, exception type, message, source, .NET CLR version, OS version and application version to generate the crash report and send it to developer using email. It uses [DoctorDump](https://drdump.com/crash-reporting-system) service to send email to developer. Developers can use their SMTP server to send email too. |
15 | 14 |
|
16 | 15 | ## Using the code |
17 | 16 |
|
@@ -48,13 +47,13 @@ internal static class Program |
48 | 47 | SendReport(e.Exception); |
49 | 48 | } |
50 | 49 |
|
51 | | - public static void SendReport(Exception exception, string developerMessage = "") |
| 50 | + public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) |
52 | 51 | { |
53 | 52 | var reportCrash = new ReportCrash("Email where you want to receive crash reports.") |
54 | 53 | { |
55 | 54 | DeveloperMessage = developerMessage |
56 | 55 | }; |
57 | | - |
| 56 | + reportCrash.Silent = silent; |
58 | 57 | reportCrash.Send(exception); |
59 | 58 | } |
60 | 59 | } |
@@ -113,12 +112,13 @@ public partial class App : Application |
113 | 112 | Environment.Exit(0); |
114 | 113 | } |
115 | 114 |
|
116 | | - public static void SendReport(Exception exception, string developerMessage = "") |
| 115 | + public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) |
117 | 116 | { |
118 | 117 | var reportCrash = new ReportCrash("Email where you want to receive crash reports.") |
119 | 118 | { |
120 | 119 | DeveloperMessage = developerMessage |
121 | 120 | }; |
| 121 | + reportCrash.Silent = silent; |
122 | 122 | reportCrash.Send(exception); |
123 | 123 | } |
124 | 124 | } |
|
0 commit comments