Skip to content

IHealthCheckable Methods

Interface for services which can be probed for health status.

CheckHealth(DateTime, string)

abstract
public abstract bool CheckHealth(DateTime lastCheckTime, out string reason)
Returns a value indicating the health of this instance.

Parameters

lastCheckTimeDateTime
The last time which this instance health was checked.
reasonstring
If this method returns false, this parameter will describe the reason for that verdict.

Returns

true if the instance is healthy, false otherwise.