Esempio n. 1
0
 /// <summary>
 /// Disables the capture of errors through <see cref="AppDomain.ProcessExit"/>
 /// </summary>
 /// <param name="options">The SentryOptions to remove the integration from.</param>
 public static void DisableAppDomainProcessExitFlush(this SentryOptions options) =>
 options.RemoveIntegration <AppDomainProcessExitIntegration>();
Esempio n. 2
0
 /// <summary>
 /// Disables the capture of errors through <see cref="TaskScheduler.UnobservedTaskException"/>.
 /// </summary>
 /// <param name="options">The SentryOptions to remove the integration from.</param>
 public static void DisableTaskUnobservedTaskExceptionCapture(this SentryOptions options) =>
 options.RemoveIntegration <TaskUnobservedTaskExceptionIntegration>();
Esempio n. 3
0
 /// <summary>
 /// Disables the list addition of .Net Frameworks into events.
 /// </summary>
 /// <param name="options">The SentryOptions to remove the integration from.</param>
 public static void DisableNetFxInstallationsIntegration(this SentryOptions options)
 {
     options.EventProcessors =
         options.EventProcessors?.Where(p => p.GetType() != typeof(NetFxInstallationsEventProcessor)).ToArray();
     options.RemoveIntegration <NetFxInstallationsIntegration>();
 }
Esempio n. 4
0
 /// <summary>
 /// Disables the capture of errors through <see cref="AppDomain.UnhandledException"/>.
 /// </summary>
 /// <param name="options">The SentryOptions to remove the integration from.</param>
 public static void DisableAppDomainUnhandledExceptionCapture(this SentryOptions options) =>
 options.RemoveIntegration <AppDomainUnhandledExceptionIntegration>();