Skip to content
Docs Try Aspire
Docs Try

ExternalServiceResource

Handle
📦 Aspire.Hosting v13.4.0
interface ExternalServiceResource extends IResource {
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): ExternalServiceResource;
}

Methods

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