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
的值。