Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle background polling on/off ? #2378

Open
brianbyrnebg opened this issue Feb 28, 2025 · 0 comments
Open

Toggle background polling on/off ? #2378

brianbyrnebg opened this issue Feb 28, 2025 · 0 comments

Comments

@brianbyrnebg
Copy link

Hi,
I'd like to disable / enable health check polling via a feature flag.
I was thinking I could adapt this:
Is there a way to change HealthChecks.UI.Configuration.SetEvaluationTimeInSeconds dynamically at runtime?
and set EvaluationTimeInSeconds to -1 so that the Task.Delay in HealthCheckReportCollector.cs would delay infinitely, which would disable polling. However I don't think this is the correct approach because once the the task is delayed infinitely I don't see how polling could be ever started again.

Is there a away to achieve toggling the background polling on/off?

Thanks for any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant