Skip to content
DocsTry Aspire
DocsTry

withHttpHealthCheck

Method
📦 Aspire.Hosting v13.4.0
interface ExternalServiceResource {
// ... omitted for brevity
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): ExternalServiceResource;
}

Signature

methodwithHttpHealthCheckbuilder
Adds an HTTP health check to the external service for polyglot app hosts.
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): ExternalServiceResource
pathstringoptional
statusCodenumberoptional
endpointNamestringoptional
ExternalServiceResource

Applies to

This method applies to the following types: