Skip to content

Commit 6730018

Browse files
committed
Updated test project with Silent flag example.
1 parent 52059bf commit 6730018

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CrashReporterTest/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ static void Main()
2323
Application.Run(new FormMain());
2424
}
2525

26-
public static void SendReport(Exception exception, string developerMessage = "")
26+
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false)
2727
{
2828
var reportCrash = new ReportCrash("Email where you want to receive crash reports.")
2929
{
3030
DeveloperMessage = developerMessage,
31+
Silent = silent,
3132
DoctorDumpSettings = new DoctorDumpSettings
3233
{
3334
ApplicationID = new Guid("Application ID you received from DrDump.com"),

CrashReporterWPFTest/App.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ private static void CurrentDomainOnUnhandledException(object sender, UnhandledEx
3737
Environment.Exit(0);
3838
}
3939

40-
public static void SendReport(Exception exception, string developerMessage = "")
40+
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false)
4141
{
4242
var reportCrash = new ReportCrash("Email where you want to receive crash reports.")
4343
{
44-
DeveloperMessage = developerMessage
44+
DeveloperMessage = developerMessage,
45+
Silent = silent
4546
};
4647
reportCrash.Send(exception);
4748
}

0 commit comments

Comments
 (0)