CommonHealthChecksExtensions.AddManualHealthCheck Method

Definition

Overloads

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Registers a health check provider that enables manual control of the application's health.

AddManualHealthCheck(IHealthChecksBuilder, String[])

Registers a health check provider that enables manual control of the application's health.

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Source:
CommonHealthChecksExtensions.Manual.cs

Registers a health check provider that enables manual control of the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

tags
IEnumerable<String>

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder or tags is null.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AddManualHealthCheck(IHealthChecksBuilder, String[])

Source:
CommonHealthChecksExtensions.Manual.cs

Registers a health check provider that enables manual control of the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

tags
String[]

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder or tags is null.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)