Skip to content
Docs Try Aspire
Docs Try

IResource.withHealthCheck

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... omitted for brevity
withHealthCheck(key: string): IResource;
}

Signature

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

Defined on

This method is defined on the following type: