CommonHealthChecksExtensions.AddApplicationLifecycleHealthCheck 方法

定义

重载

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

注册与应用程序生命周期相关的运行状况检查提供程序。

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])

注册与应用程序生命周期相关的运行状况检查提供程序。

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Source:
CommonHealthChecksExtensions.ApplicationLifecycle.cs

注册与应用程序生命周期相关的运行状况检查提供程序。

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

参数

builder
IHealthChecksBuilder

要向其添加提供程序的生成器。

tags
IEnumerable<String>

可用于筛选运行状况检查的标记的列表。

返回

builder 的值。

例外

buildertagsnull

适用于

AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])

Source:
CommonHealthChecksExtensions.ApplicationLifecycle.cs

注册与应用程序生命周期相关的运行状况检查提供程序。

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

参数

builder
IHealthChecksBuilder

要向其添加提供程序的生成器。

tags
String[]

可用于筛选运行状况检查的标记的列表。

返回

builder 的值。

适用于