Skip to content
DocsTry Aspire
DocsTry

ExternalServiceResource.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

Defined on

This method is defined on the following type: