CommonHealthChecksExtensions.AddApplicationLifecycleHealthCheck Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>)
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[])
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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for