HealthChecksBuilderDelegateExtensions.AddCheck メソッド

定義

オーバーロード

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>)

指定の名前と実装で新しい正常性チェックが追加されます。

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>)

指定の名前と実装で新しい正常性チェックが追加されます。

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

指定の名前と実装で新しい正常性チェックが追加されます。

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

指定の名前と実装で新しい正常性チェックが追加されます。

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>)

指定の名前と実装で新しい正常性チェックが追加されます。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::String ^ name, Func<Microsoft::Extensions::Diagnostics::HealthChecks::HealthCheckResult> ^ check, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags = default);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags);
static member AddCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string * Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of HealthCheckResult), Optional tags As IEnumerable(Of String) = Nothing) As IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of HealthCheckResult), tags As IEnumerable(Of String)) As IHealthChecksBuilder

パラメーター

name
String

正常性チェックの名前。

check
Func<HealthCheckResult>

正常性チェックの実装を提供するデリゲート。

tags
IEnumerable<String>

正常性チェックのフィルター処理に使用できるタグのリスト。

戻り値

IHealthChecksBuilder

IHealthChecksBuilder

適用対象

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>)

指定の名前と実装で新しい正常性チェックが追加されます。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::String ^ name, Func<System::Threading::CancellationToken, Microsoft::Extensions::Diagnostics::HealthChecks::HealthCheckResult> ^ check, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<System.Threading.CancellationToken,Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags = default);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<System.Threading.CancellationToken,Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<System.Threading.CancellationToken,Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string>? tags);
static member AddCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string * Func<System.Threading.CancellationToken, Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of CancellationToken, HealthCheckResult), Optional tags As IEnumerable(Of String) = Nothing) As IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of CancellationToken, HealthCheckResult), tags As IEnumerable(Of String)) As IHealthChecksBuilder

パラメーター

name
String

正常性チェックの名前。

check
Func<CancellationToken,HealthCheckResult>

正常性チェックの実装を提供するデリゲート。

tags
IEnumerable<String>

正常性チェックのフィルター処理に使用できるタグのリスト。

戻り値

IHealthChecksBuilder

IHealthChecksBuilder

適用対象

AddCheck(IHealthChecksBuilder, String, Func<HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

指定の名前と実装で新しい正常性チェックが追加されます。

public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags = default, TimeSpan? timeout = default);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string>? tags = default, TimeSpan? timeout = default);
static member AddCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string * Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of HealthCheckResult), Optional tags As IEnumerable(Of String) = Nothing, Optional timeout As Nullable(Of TimeSpan) = Nothing) As IHealthChecksBuilder

パラメーター

name
String

正常性チェックの名前。

check
Func<HealthCheckResult>

正常性チェックの実装を提供するデリゲート。

tags
IEnumerable<String>

正常性チェックのフィルター処理に使用できるタグのリスト。

timeout
Nullable<TimeSpan>

チェックのタイムアウトを表す省略可能な TimeSpan

戻り値

IHealthChecksBuilder

IHealthChecksBuilder

適用対象

AddCheck(IHealthChecksBuilder, String, Func<CancellationToken,HealthCheckResult>, IEnumerable<String>, Nullable<TimeSpan>)

指定の名前と実装で新しい正常性チェックが追加されます。

public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<System.Threading.CancellationToken,Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string> tags = default, TimeSpan? timeout = default);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string name, Func<System.Threading.CancellationToken,Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> check, System.Collections.Generic.IEnumerable<string>? tags = default, TimeSpan? timeout = default);
static member AddCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string * Func<System.Threading.CancellationToken, Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult> * seq<string> * Nullable<TimeSpan> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddCheck (builder As IHealthChecksBuilder, name As String, check As Func(Of CancellationToken, HealthCheckResult), Optional tags As IEnumerable(Of String) = Nothing, Optional timeout As Nullable(Of TimeSpan) = Nothing) As IHealthChecksBuilder

パラメーター

name
String

正常性チェックの名前。

check
Func<CancellationToken,HealthCheckResult>

正常性チェックの実装を提供するデリゲート。

tags
IEnumerable<String>

正常性チェックのフィルター処理に使用できるタグのリスト。

timeout
Nullable<TimeSpan>

チェックのタイムアウトを表す省略可能な TimeSpan

戻り値

IHealthChecksBuilder

IHealthChecksBuilder

適用対象