HealthCheckRegistration 构造函数

定义

重载

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>)

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>)

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

public:
 HealthCheckRegistration(System::String ^ name, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^ instance, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public HealthCheckRegistration (string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, instance As IHealthCheck, failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String))

参数

name
String

运行状况检查名称。

instance
IHealthCheck

IHealthCheck 实例。

failureStatus
Nullable<HealthStatus>

在运行状况检查失败时应报告的 HealthStatus。 如果提供的值为 null,则将报告 Unhealthy

tags
IEnumerable<String>

可用于筛选运行状况检查的标记列表。

适用于

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

public:
 HealthCheckRegistration(System::String ^ name, Func<IServiceProvider ^, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^> ^ factory, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public HealthCheckRegistration (string name, Func<IServiceProvider,Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Func<IServiceProvider, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, factory As Func(Of IServiceProvider, IHealthCheck), failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String))

参数

name
String

运行状况检查名称。

factory
Func<IServiceProvider,IHealthCheck>

用于创建 IHealthCheck 实例的委托。

failureStatus
Nullable<HealthStatus>

在运行状况检查报告失败时应报告的 HealthStatus。 如果提供的值为 null,则将报告 Unhealthy

tags
IEnumerable<String>

可用于筛选运行状况检查的标记列表。

适用于

HealthCheckRegistration(String, IHealthCheck, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

public:
 HealthCheckRegistration(System::String ^ name, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^ instance, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags, Nullable<TimeSpan> timeout);
public HealthCheckRegistration (string name, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck instance, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags, TimeSpan? timeout);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, instance As IHealthCheck, failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String), timeout As Nullable(Of TimeSpan))

参数

name
String

运行状况检查名称。

instance
IHealthCheck

IHealthCheck 实例。

failureStatus
Nullable<HealthStatus>

在运行状况检查失败时应报告的 HealthStatus。 如果提供的值为 null,则将报告 Unhealthy

tags
IEnumerable<String>

可用于筛选运行状况检查的标记列表。

timeout
Nullable<TimeSpan>

表示检查超时的可选 TimeSpan

适用于

HealthCheckRegistration(String, Func<IServiceProvider,IHealthCheck>, Nullable<HealthStatus>, IEnumerable<String>, Nullable<TimeSpan>)

Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs
Source:
HealthCheckRegistration.cs

为现有的 IHealthCheck 实例创建新的 HealthCheckRegistration

public:
 HealthCheckRegistration(System::String ^ name, Func<IServiceProvider ^, Microsoft::Extensions::Diagnostics::HealthChecks::IHealthCheck ^> ^ factory, Nullable<Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus> failureStatus, System::Collections::Generic::IEnumerable<System::String ^> ^ tags, Nullable<TimeSpan> timeout);
public HealthCheckRegistration (string name, Func<IServiceProvider,Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> factory, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus, System.Collections.Generic.IEnumerable<string>? tags, TimeSpan? timeout);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration : string * Func<IServiceProvider, Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck> * Nullable<Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration
Public Sub New (name As String, factory As Func(Of IServiceProvider, IHealthCheck), failureStatus As Nullable(Of HealthStatus), tags As IEnumerable(Of String), timeout As Nullable(Of TimeSpan))

参数

name
String

运行状况检查名称。

factory
Func<IServiceProvider,IHealthCheck>

用于创建 IHealthCheck 实例的委托。

failureStatus
Nullable<HealthStatus>

在运行状况检查报告失败时应报告的 HealthStatus。 如果提供的值为 null,则将报告 Unhealthy

tags
IEnumerable<String>

可用于筛选运行状况检查的标记列表。

timeout
Nullable<TimeSpan>

表示检查超时的可选 TimeSpan

适用于