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