Consider patching https://github.com/aspnet/Extensions/issues/1041 in 2.2
See original GitHub issueImpact
It’s not possible to set the Period
of the health check publisher hosted service without using reflection. The wrong backing field is set.
This isn’t very discoverable because the bug manifests in a setting not being honoured. You might think you are publishing health data every 30 seconds, but it’s going to always use the default period.
Workaround
The workaround is to use reflection.
Risk
The risk here is that someone is setting Period
- which actually sets Delay
and they are relying on this detail. If a user actually wanted to set Delay
, they can already do that.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is already crosslinked, so we’re good on the docs side.
Done and verified