/// <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>();
/// <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>();
/// <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>(); }
/// <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>();