METHOD

Aspire WithHttpHealthCheck

Associate a resource health check with its HTTP endpoint; an app must actually serve the endpoint.

Formal Syntax & Structure

csharp syntaxcsharp
inventory.WithHttpHealthCheck("/health")

Working Example

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