Class HealthCheckExtensions
- Namespace
- ProjectTemplate.Web.Extensions
- Assembly
- ProjectTemplate.Web.dll
Provides extension methods for registering and mapping application health check endpoints.
public static class HealthCheckExtensions
- Inheritance
-
HealthCheckExtensions
- Inherited Members
Methods
AddApplicationHealthChecks(IServiceCollection)
Registers baseline ASP.NET Core health check services.
public static IServiceCollection AddApplicationHealthChecks(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection used to register health checks.
Returns
- IServiceCollection
The original IServiceCollection for chaining.
MapApplicationHealthChecks(WebApplication)
Maps baseline health check endpoints for infrastructure, reverse proxies, and hosting platforms.
public static WebApplication MapApplicationHealthChecks(this WebApplication app)
Parameters
appWebApplicationThe web application used to map health check endpoints.
Returns
- WebApplication
The original WebApplication for chaining.