共用方式為


CommonHealthChecksExtensions.AddManualHealthCheck 方法

定義

多載

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

註冊健康情況檢查提供者,以手動控制應用程式的健康情況。

AddManualHealthCheck(IHealthChecksBuilder, String[])

註冊健康情況檢查提供者,以手動控制應用程式的健康情況。

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

來源:
CommonHealthChecksExtensions.Manual.cs

註冊健康情況檢查提供者,以手動控制應用程式的健康情況。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddManualHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);
static member AddManualHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddManualHealthCheck (builder As IHealthChecksBuilder, tags As IEnumerable(Of String)) As IHealthChecksBuilder

參數

builder
IHealthChecksBuilder

要加入提供者的產生器。

tags
IEnumerable<String>

可用來篩選健康狀態檢查的標籤清單。

傳回

builder 的值。

例外狀況

buildertagsnull

適用於

AddManualHealthCheck(IHealthChecksBuilder, String[])

來源:
CommonHealthChecksExtensions.Manual.cs

註冊健康情況檢查提供者,以手動控制應用程式的健康情況。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddManualHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddManualHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);
static member AddManualHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddManualHealthCheck (builder As IHealthChecksBuilder, ParamArray tags As String()) As IHealthChecksBuilder

參數

builder
IHealthChecksBuilder

要加入提供者的產生器。

tags
String[]

可用來篩選健康狀態檢查的標籤清單。

傳回

builder 的值。

例外狀況

buildertagsnull

適用於