Health Checks - Register path/options with dependency injection #18153
Labels
affected-very-few
This issue impacts very few customers
area-healthchecks
Includes: Healthchecks (some bugs also in Extensions repo)
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
severity-minor
This label is used by an internal tool
Milestone
Is your feature request related to a problem? Please describe.
This feature would directly support development efforts on:
domaindrivendev/Swashbuckle.AspNetCore#1058
When adding health checks using
IApplicationBuilder.UseHealthChecks
, the values of path andHealthCheckOptions
are only used to mapHealthCheckMiddleware
. After the middleware is registered, there is no way to retrieve this information at runtime.Describe the solution you'd like
To have HealthCheckApplicationBuilderExtensions.cs refactored in a non-breaking way so that the path and
HealthCheckOptions
information is accessible at runtime (preferably via dependency injection).The text was updated successfully, but these errors were encountered: