IHealthCheck 接口
定义
表示运行状况检查,可用于检查应用程序中组件的状态,例如后端服务、数据库或某些内部状态。Represents a health check, which can be used to check the status of a component in the application, such as a backend service, database or some internal state.
public interface class IHealthCheck
public interface IHealthCheck
type IHealthCheck = interface
Public Interface IHealthCheck
方法
| CheckHealthAsync(HealthCheckContext, CancellationToken) |
运行运行状况检查,返回正在接受检查的组件的状态。Runs the health check, returning the status of the component being checked. |