Esempio n. 1
0
 public AdminPartMiddleware(ISentryClient adminClient, dynamic middleware)
 {
     _adminClient = adminClient;
     _middleware  = middleware;
 }
Esempio n. 2
0
 public void BindClient(ISentryClient client) => ScopeManager.BindClient(client);
Esempio n. 3
0
 /// <summary>
 /// No-Op.
 /// </summary>
 public void BindClient(ISentryClient client)
 {
 }
 /// <summary>
 /// Captures the exception.
 /// </summary>
 /// <param name="client">The Sentry client.</param>
 /// <param name="ex">The exception.</param>
 /// <returns>The Id of the event</returns>
 public static SentryId CaptureException(this ISentryClient client, Exception ex)
 {
     return(!client.IsEnabled
         ? new SentryId()
         : client.CaptureEvent(new SentryEvent(ex)));
 }
Esempio n. 5
0
 public void BindClient(ISentryClient client)
 => SentryCore.BindClient(client);
Esempio n. 6
0
 public void BindClient(ISentryClient client) => _hub.BindClient(client);
Esempio n. 7
0
 public SentryEventBuilder(ISentryClient client)
 {
     _client = client;
 }
Esempio n. 8
0
 /// <summary>
 /// Captures the exception.
 /// </summary>
 /// <param name="client">The Sentry client.</param>
 /// <param name="ex">The exception.</param>
 /// <returns></returns>
 public static Guid CaptureException(this ISentryClient client, Exception ex)
 {
     return(!client.IsEnabled
         ? Guid.Empty
         : client.CaptureEvent(new SentryEvent(ex)));
 }
Esempio n. 9
0
 public ExceptionService(ISentryClient sentryClient)
 {
     _sentryClient = sentryClient;
 }
Esempio n. 10
0
 /// <summary>
 /// Captures the exception.
 /// </summary>
 /// <param name="client">The Sentry client.</param>
 /// <param name="ex">The exception.</param>
 /// <returns></returns>
 public static SentryResponse CaptureException(this ISentryClient client, Exception ex)
 => client.CaptureEvent(new SentryEvent(ex));