private void SendMessage(RaygunClient client, Exception exception) { if (!string.IsNullOrWhiteSpace(Tags)) { var tags = Tags.Split(','); client.SendInBackground(exception, tags); } else { client.SendInBackground(exception); } }
public static void SendError(RaygunClient client, Exception e, StoredMessage storedMessage) { var extraData = StoredMessageToDictionary(storedMessage); AddServiceControlVersion(extraData); client.SendInBackground(e, null, extraData); }
public static void SendError(RaygunClient client, Exception e) { var extraData = new Dictionary<string, object>(); AddServiceControlVersion(extraData); client.SendInBackground(e, null, extraData); }
public void SimpleSample() { RaygunClient client = new RaygunClient("6Zq4x7UB+5mdlq8eigy0Ow=="); RaygunSettings.Settings.ThrowOnError = true; client.SendInBackground(new StackOverflowException("Houston, we have a problem!")); MyRaygunMessageBuilder message = new MyRaygunMessageBuilder() .SetException(new StackOverflowException("Custom Stuff")) .SetUser(new User("Gerrit Puddig", new MailAddress("*****@*****.**"))); client.Send(message.Build()); //client.SendInBackground(message.Build()); }
private void SendMessage(RaygunClient client, Exception exception, IList<string> exceptionTags, IDictionary customData) { if (!string.IsNullOrWhiteSpace(Tags)) { var tags = Tags.Split(','); foreach (string tag in tags) { exceptionTags.Add(tag); } } client.SendInBackground(exception, exceptionTags, customData); }