IHealthCheckable.CheckHealth 方法

定义

重载

CheckHealth(DateTime)

返回一个值,该值指示此实例的运行状况。

CheckHealth(DateTime, String)

返回一个值,该值指示此实例的运行状况。

CheckHealth(DateTime)

返回一个值,该值指示此实例的运行状况。

public bool CheckHealth (DateTime lastCheckTime);
abstract member CheckHealth : DateTime -> bool
Public Function CheckHealth (lastCheckTime As DateTime) As Boolean

参数

lastCheckTime
DateTime

上次检查此实例运行状况的时间。

返回

true if the instance is healthy, false otherwise.

适用于

CheckHealth(DateTime, String)

Source:
IHealthCheckable.cs

返回一个值,该值指示此实例的运行状况。

public bool CheckHealth (DateTime lastCheckTime, out string reason);
abstract member CheckHealth : DateTime * string -> bool
Public Function CheckHealth (lastCheckTime As DateTime, ByRef reason As String) As Boolean

参数

lastCheckTime
DateTime

上次检查此实例运行状况的时间。

reason
String

如果此方法返回 false,此参数将描述该判决的原因。

返回

true if the instance is healthy, false otherwise.

适用于