AddHealthCheck
Method
func (DistributedApplicationBuilder) AddHealthCheck( name string, check func(...any) *HealthCheckResult,) errorSignature
method
AddHealthCheck Adds a custom health check callback to the distributed-application builder.
AddHealthCheck( name string, check func(...any) *HealthCheckResult,) errorParameters
namestringThe health check registration name.checkfunc(...any) *HealthCheckResult callbackThe callback that evaluates the health check.Returns
errorReturns error.
Applies to
This method applies to the following types: