Skip to content

Instantly share code, notes, and snippets.

@ejsmith
Last active December 20, 2015 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejsmith/6082335 to your computer and use it in GitHub Desktop.
Save ejsmith/6082335 to your computer and use it in GitHub Desktop.
Sample console app for Exceptionless
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