다음을 통해 공유


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>)

Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs

지정된 이름과 구현을 사용하여 새 상태 검사를 추가합니다.

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);
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), tags As IEnumerable(Of String)) As IHealthChecksBuilder

매개 변수

name
String

상태 검사의 이름입니다.

check
Func<HealthCheckResult>

상태 검사 구현을 제공하는 대리자입니다.

tags
IEnumerable<String>

상태 검사를 필터링하는 데 사용할 수 있는 태그 목록입니다.

반환

IHealthChecksBuilder

적용 대상

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

Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs

지정된 이름과 구현을 사용하여 새 상태 검사를 추가합니다.

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);
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), tags As IEnumerable(Of String)) As IHealthChecksBuilder

매개 변수

name
String

상태 검사의 이름입니다.

check
Func<CancellationToken,HealthCheckResult>

상태 검사 구현을 제공하는 대리자입니다.

tags
IEnumerable<String>

상태 검사를 필터링하는 데 사용할 수 있는 태그 목록입니다.

반환

IHealthChecksBuilder

적용 대상

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

Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs

지정된 이름과 구현을 사용하여 새 상태 검사를 추가합니다.

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

적용 대상

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

Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs
Source:
HealthChecksBuilderDelegateExtensions.cs

지정된 이름과 구현을 사용하여 새 상태 검사를 추가합니다.

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

적용 대상