Skip to content

Instantly share code, notes, and snippets.

@ejsmith

ejsmith/gist:6082335

Last active Dec 20, 2015
Embed
What would you like to do?
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