Skip to content
Docs Try Aspire
Docs Try

ExternalServiceResource.withHttpHealthCheck

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

Signature

method withHttpHealthCheck builder
Adds an HTTP health check to the external service for polyglot app hosts.
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): ExternalServiceResource
path string optional
statusCode number optional
endpointName string optional
ExternalServiceResource

Defined on

This method is defined on the following type: