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 |
private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { if (e.Exception != null) { _client.Send(e.Exception); } }
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); } } }
private static void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { if (e.Exception != null) { _client.Send(e.Exception); } if (RaygunSettings.Settings.SetUnobservedTaskExceptionsAsObserved) { e.SetObserved(); } }
private static void Current_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { if (e.ExceptionObject is Exception) { _client.Send(e.ExceptionObject); } }
public void Done() { if (!_locked) { _locked = true; _raygunClient.Send(this); } }
private void SendError(object sender, EventArgs e) { var application = (HttpApplication)sender; var exception = application.Server.GetLastError(); var raygunClient = new RaygunClient(); raygunClient.Send(exception); }
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()); }
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); } }
public static void HandleException(Exception exception) { var apiKey = "";//TODO: set your Raygun ApiKey var raygunClient = new RaygunClient(apiKey); raygunClient.Send(exception); }
private static void Current_UnhandledException(object sender, UnhandledExceptionEventArgs e) { _client.Send(e); }
public void Send(Exception e) { RaygunClient _client = new RaygunClient("EBvSU9kriUrVGUyppe8v3Q=="); _client.Send(e); }