IHealthChecksBuilder IHealthChecksBuilder IHealthChecksBuilder Interface

Definition

A builder used to register health checks.

public interface IHealthChecksBuilder
type IHealthChecksBuilder = interface
Public Interface IHealthChecksBuilder

Properties

Services Services Services

Gets the IServiceCollection into which IHealthCheck instances should be registered.

Methods

Add(HealthCheckRegistration) Add(HealthCheckRegistration) Add(HealthCheckRegistration)

Adds a HealthCheckRegistration for a health check.

Extension Methods

AddDbContextCheck<TContext>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Func<TContext,CancellationToken,Task<Boolean>>) AddDbContextCheck<TContext>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Func<TContext,CancellationToken,Task<Boolean>>) AddDbContextCheck<TContext>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Func<TContext,CancellationToken,Task<Boolean>>)

Adds a health check for the specified DbContext type.

AddCheck(IHealthChecksBuilder, String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>) AddCheck(IHealthChecksBuilder, String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>) AddCheck(IHealthChecksBuilder, String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>)

Adds a new health check with the specified name and implementation.

AddCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>) AddCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>) AddCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>)

Adds a new health check with the specified name and implementation.

AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, IEnumerable<String>, Object[])

Adds a new type activated health check with the specified name and implementation.

AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Nullable<HealthStatus>, Object[])

Adds a new type activated health check with the specified name and implementation.

AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Object[]) AddTypeActivatedCheck<T>(IHealthChecksBuilder, String, Object[])

Adds a new type activated health check with the specified name and implementation.

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

Adds a new health check with the specified name and implementation.

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

Adds a new health check with the specified name and implementation.

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

Adds a new health check with the specified name and implementation.

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

Adds a new health check with the specified name and implementation.

Applies to