Dela via


CommonHealthChecksExtensions.AddApplicationLifecycleHealthCheck Method

Definition

Overloads

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Registers a health check provider that's tied to the application's lifecycle.

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])

Registers a health check provider that's tied to the application's lifecycle.

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Source:
CommonHealthChecksExtensions.ApplicationLifecycle.cs

Registers a health check provider that's tied to the application's lifecycle.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddApplicationLifecycleHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddApplicationLifecycleHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);
static member AddApplicationLifecycleHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddApplicationLifecycleHealthCheck (builder As IHealthChecksBuilder, tags As IEnumerable(Of String)) As IHealthChecksBuilder

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

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])

Source:
CommonHealthChecksExtensions.ApplicationLifecycle.cs

Registers a health check provider that's tied to the application's lifecycle.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddApplicationLifecycleHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddApplicationLifecycleHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);
static member AddApplicationLifecycleHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddApplicationLifecycleHealthCheck (builder As IHealthChecksBuilder, ParamArray tags As String()) As IHealthChecksBuilder

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.

Applies to