DistributedApplicationBuilder.AddHealthCheck
Method
type DistributedApplicationBuilder interface { // ... omitted for brevity AddHealthCheck( name string, check func(...any) *HealthCheckResult, ) error}Signature
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.
Defined on
This method is defined on the following type: