METHOD

MapHealthChecks

Map an ASP.NET Core health endpoint with configurable status codes and filtering.

Formal Syntax & Structure

csharp syntaxcsharp
app.MapHealthChecks("/health")

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.app.MapHealthChecks("/health")
C# & .NET Reference