Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

ExternalServiceResource

Handle
📦 Aspire.Hosting v13.6.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 AppHosts.
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): ExternalServiceResource
pathstringoptional
statusCodenumberoptional
endpointNamestringoptional
ExternalServiceResource