Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHttpHealthCheck

Method
📦 Aspire.Hosting v17.0.0
func (ExternalServiceResource) WithHttpHealthCheck(options ...*WithHttpHealthCheckOptions) ExternalServiceResource

Signature

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().

Applies to

This method applies to the following types: