SendInBackground() public method

Asynchronously transmits a message to Raygun.
public SendInBackground ( Exception exception ) : Task
exception Exception The exception to deliver.
return Task
Esempio n. 1
0
 private void SendMessage(RaygunClient client, Exception exception)
 {
     if (!string.IsNullOrWhiteSpace(Tags))
     {
         var tags = Tags.Split(',');
         client.SendInBackground(exception, tags);
     }
     else
     {
         client.SendInBackground(exception);
     }
 }
Esempio n. 2
0
        public static void SendError(RaygunClient client, Exception e, StoredMessage storedMessage)
        {
            var extraData = StoredMessageToDictionary(storedMessage);
            AddServiceControlVersion(extraData);

            client.SendInBackground(e, null, extraData);
        }
Esempio n. 3
0
        public static void SendError(RaygunClient client, Exception e)
        {
            var extraData = new Dictionary<string, object>();
            AddServiceControlVersion(extraData);

            client.SendInBackground(e, null, extraData);
        }
Esempio n. 4
0
        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());
        }
Esempio n. 5
0
        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);
        }