Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ExternalServiceResource

Handle
📦 Aspire.Hosting v17.0.0
type ExternalServiceResource interface {
Resource
}

Methods

methodWithHttpHealthCheckbuilder
Adds an HTTP health check to the external service for polyglot AppHosts.
WithHttpHealthCheck(options ...*WithHttpHealthCheckOptions) ExternalServiceResource
options...*WithHttpHealthCheckOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithHttpHealthCheckOptions argument.

Path*string
StatusCode*float64
EndpointName*string
ExternalServiceResource

Returns a handle; failures surface later via Err().