HealthChecksBuilderDelegateExtensions 類別

定義

提供用於向 IHealthChecksBuilder 註冊委派的擴充方法。Provides extension methods for registering delegates with the IHealthChecksBuilder.

public ref class HealthChecksBuilderDelegateExtensions abstract sealed
public static class HealthChecksBuilderDelegateExtensions
type HealthChecksBuilderDelegateExtensions = class
Public Module HealthChecksBuilderDelegateExtensions
繼承
HealthChecksBuilderDelegateExtensions

方法

AddAsyncCheck(IHealthChecksBuilder, String, Func<CancellationToken,Task<HealthCheckResult>>, IEnumerable<String>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddAsyncCheck(IHealthChecksBuilder, String, Func<CancellationToken,Task<HealthCheckResult>>, IEnumerable<String>, Nullable<TimeSpan>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddAsyncCheck(IHealthChecksBuilder, String, Func<Task<HealthCheckResult>>, IEnumerable<String>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddAsyncCheck(IHealthChecksBuilder, String, Func<Task<HealthCheckResult>>, IEnumerable<String>, Nullable<TimeSpan>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

新增具有指定名稱和實作的新健康狀態檢查。Adds a new health check with the specified name and implementation.

適用於