Skip to content
DocsTry Aspire
DocsTry

ExternalServiceResource

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

Methods

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