SendInBackground() 공개 메소드

Asynchronously transmits a message to Raygun.
public SendInBackground ( Exception exception ) : Task
exception Exception The exception to deliver.
리턴 Task
예제 #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);
     }
 }
예제 #2
0
        public static void SendError(RaygunClient client, Exception e, StoredMessage storedMessage)
        {
            var extraData = StoredMessageToDictionary(storedMessage);
            AddServiceControlVersion(extraData);

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

            client.SendInBackground(e, null, extraData);
        }
예제 #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());
        }
예제 #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);
        }