HealthCheckServiceCollectionExtensions 类

定义

提供用于在 IServiceCollection 中注册 HealthCheckService 的扩展方法。

public ref class HealthCheckServiceCollectionExtensions abstract sealed
public static class HealthCheckServiceCollectionExtensions
type HealthCheckServiceCollectionExtensions = class
Public Module HealthCheckServiceCollectionExtensions
继承
HealthCheckServiceCollectionExtensions

方法

AddHealthChecks(IServiceCollection)

使用提供的委托注册运行状况检查,以将 HealthCheckService 添加到容器中。

适用于