Skip to content

Move validation of HealthCheckServiceOptions to IValidationOptions<HealthCheckServiceOptions> #26573

Open
@weichch

Description

@weichch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-very-fewThis issue impacts very few customersarea-healthchecksIncludes: Healthchecks (some bugs also in Extensions repo)enhancementThis issue represents an ask for new feature or an enhancement to an existing oneseverity-nice-to-haveThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions