You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: