Send() 공개 메소드

Posts a RaygunMessage to the Raygun api endpoint.
public Send ( RaygunMessage raygunMessage ) : Task
raygunMessage RaygunMessage The RaygunMessage to send. This needs its OccurredOn property /// set to a valid DateTime and as much of the Details property as is available.
리턴 Task
예제 #1
0
 private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     if (e.Exception != null)
     {
         _client.Send(e.Exception);
     }
 }
예제 #2
0
 private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     if (e.Exception != null)
     {
         _client.Send(e.Exception);
         if (_client._reporter != null)
         {
             WriteExceptionInformation(_client._reporter.NextReportUUID, e.Exception);
         }
     }
 }
예제 #3
0
        private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
        {
            if (e.Exception != null)
            {
                _client.Send(e.Exception);
            }

            if (RaygunSettings.Settings.SetUnobservedTaskExceptionsAsObserved)
            {
                e.SetObserved();
            }
        }
예제 #4
0
 private static void Current_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
 {
     if (e.ExceptionObject is Exception)
     {
         _client.Send(e.ExceptionObject);
     }
 }
예제 #5
0
 public void Done()
 {
     if (!_locked)
     {
         _locked = true;
         _raygunClient.Send(this);
     }
 }
예제 #6
0
        private void SendError(object sender, EventArgs e)
        {
            var application = (HttpApplication)sender;

              var exception = application.Server.GetLastError();

              var raygunClient = new RaygunClient();

              raygunClient.Send(exception);
        }
예제 #7
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());
        }
예제 #8
0
        public static void LogException(Exception ex)
        {
            if (GlobalPackageSettings.ErrorReportingEnabled)
            {
                IDictionary userInfo = new Dictionary<string, string>()
                {
                    { "visual studio version", _info.VisualStudioVersion }
                };

                RaygunClient client = new RaygunClient(ApiKeys.RayGun)
                {
                    ApplicationVersion = "1.4.0"
                };

                client.Send(ex, null, userInfo);
            }
        }
예제 #9
0
 public static void HandleException(Exception exception)
 {
     var apiKey = "";//TODO: set your Raygun ApiKey
     var raygunClient = new RaygunClient(apiKey);
     raygunClient.Send(exception);
 }
예제 #10
0
 private static void Current_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     _client.Send(e);
 }
예제 #11
0
 public void Send(Exception e)
 {
     RaygunClient _client = new RaygunClient("EBvSU9kriUrVGUyppe8v3Q==");
     _client.Send(e);
 }