示例#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>();
示例#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>();
示例#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>();
 }
示例#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>();