Freigeben über


CoreHealthChecksExtensions.AddApplicationLifecycleHealthCheck Method

Definition

Overloads

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder)

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

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)

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);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddApplicationLifecycleHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder);
static member AddApplicationLifecycleHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddApplicationLifecycleHealthCheck (builder As IHealthChecksBuilder) As IHealthChecksBuilder

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

Returns

The value of builder.

Exceptions

If builder is null.

Applies to

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

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

If builder or tags are null.

Applies to

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])

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