CommonHealthChecksExtensions.AddApplicationLifecycleHealthCheck 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>) |
注册与应用程序生命周期相关的运行状况检查提供程序。 |
AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[]) |
注册与应用程序生命周期相关的运行状况检查提供程序。 |
AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, IEnumerable<String>)
注册与应用程序生命周期相关的运行状况检查提供程序。
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
的值。
例外
builder
或 tags
为 null
。
适用于
AddApplicationLifecycleHealthCheck(IHealthChecksBuilder, String[])
注册与应用程序生命周期相关的运行状况检查提供程序。
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
的值。