HealthCheckServiceCollectionExtensions 类

定义

提供用于在 IServiceCollection 中注册 HealthCheckService 的扩展方法。Provides extension methods for registering HealthCheckService in an IServiceCollection.

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

方法

AddHealthChecks(IServiceCollection)

使用提供的委托注册运行状况检查,以将 HealthCheckService 添加到容器中。Adds the HealthCheckService to the container, using the provided delegate to register health checks.

适用于