Open
Description
Is your feature request related to a problem? Please describe.
This isn't related to an issue. It is more of an improvement.
Currently the validation of HealthCheckServiceOptions
happens in this private method. It'd be better if the code could be moved into an instance of IValidationOptions<HealthCheckServiceOptions>
.
Describe the solution you'd like
Something like weichch#3
Additional context
It is also possible to use a dictionary to manage health check registrations if we could make registration name immutable #26572. Then validation becomes redundant.