Last active
December 20, 2015 05:59
-
-
Save ejsmith/6082335 to your computer and use it in GitHub Desktop.
Sample console app for Exceptionless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using CodeSmith.Core.Helpers; | |
using Exceptionless; | |
namespace SampleConsole { | |
internal class Program { | |
private static void Main() { | |
ExceptionlessClient.Current.Startup(); | |
SendOne(); | |
ExceptionlessClient.Current.ProcessQueue(); | |
} | |
private static void SendOne() | |
{ | |
try { | |
throw new ApplicationException(Guid.NewGuid().ToString()); | |
} catch (Exception ex) { | |
ex.ToExceptionless().MarkAsCritical().Submit(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment