Aracılığıyla paylaş


HealthChecksBuilderDelegateExtensions.AddCheck Yöntem

Tanım

Aşırı Yüklemeler

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

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Parametreler

name
String

Sistem durumu denetiminin adı.

check
Func<HealthCheckResult>

Sistem durumu denetimi uygulamasını sağlayan bir temsilci.

tags
IEnumerable<String>

Sistem durumu denetimlerini filtrelemek için kullanılabilecek etiketlerin listesi.

Döndürülenler

IHealthChecksBuilder.

Şunlara uygulanır

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

Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Parametreler

name
String

Sistem durumu denetiminin adı.

check
Func<CancellationToken,HealthCheckResult>

Sistem durumu denetimi uygulamasını sağlayan bir temsilci.

tags
IEnumerable<String>

Sistem durumu denetimlerini filtrelemek için kullanılabilecek etiketlerin listesi.

Döndürülenler

IHealthChecksBuilder.

Şunlara uygulanır

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

Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Parametreler

name
String

Sistem durumu denetiminin adı.

check
Func<HealthCheckResult>

Sistem durumu denetimi uygulamasını sağlayan bir temsilci.

tags
IEnumerable<String>

Sistem durumu denetimlerini filtrelemek için kullanılabilecek etiketlerin listesi.

timeout
Nullable<TimeSpan>

Denetimin zaman aşımını temsil eden isteğe bağlı TimeSpan .

Döndürülenler

IHealthChecksBuilder.

Şunlara uygulanır

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

Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs
Kaynak:
HealthChecksBuilderDelegateExtensions.cs

Belirtilen ad ve uygulama ile yeni bir sistem durumu denetimi ekler.

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

Parametreler

name
String

Sistem durumu denetiminin adı.

check
Func<CancellationToken,HealthCheckResult>

Sistem durumu denetimi uygulamasını sağlayan bir temsilci.

tags
IEnumerable<String>

Sistem durumu denetimlerini filtrelemek için kullanılabilecek etiketlerin listesi.

timeout
Nullable<TimeSpan>

Denetimin zaman aşımını temsil eden isteğe bağlı TimeSpan .

Döndürülenler

IHealthChecksBuilder.

Şunlara uygulanır