Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.addHealthCheck

Method
📦 Aspire.Hosting v13.5.3
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addHealthCheck(name: string, check: () => Promise<HealthCheckResult>): void;
}

Signature

methodaddHealthCheck
Adds a custom health check callback to the distributed-application builder.
addHealthCheck(name: string, check: () => Promise<HealthCheckResult>): void
namestring
check() => Promise<HealthCheckResult>

Defined on

This method is defined on the following type: