CommonHealthChecksExtensions.AddManualHealthCheck 方法

定义

重载

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

注册运行状况检查提供程序,该提供程序启用对应用程序运行状况的手动控制。

AddManualHealthCheck(IHealthChecksBuilder, String[])

注册运行状况检查提供程序,该提供程序启用对应用程序运行状况的手动控制。

AddManualHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Source:
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[])

Source:
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

适用于