Skip to content
Docs Try Aspire

withHealthCheck

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withHealthCheck(key: string): IResource;
}

Signature

method withHealthCheck builder
Adds a health check by key
withHealthCheck(key: string): IResource
key string
IResource

Applies to

This function is an extension method on the following types: