Condividi tramite


HealthChecksBuilderDelegateExtensions.AddAsyncCheck Metodo

Definizione

Overload

AddAsyncCheck(IHealthChecksBuilder, String, Func<CancellationToken,Task<HealthCheckResult>>, IEnumerable<String>)

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

AddAsyncCheck(IHealthChecksBuilder, String, Func<Task<HealthCheckResult>>, IEnumerable<String>)

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

AddAsyncCheck(IHealthChecksBuilder, String, Func<CancellationToken,Task<HealthCheckResult>>, IEnumerable<String>)

Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Parametri

name
String

Nome del controllo integrità.

check
Func<CancellationToken,Task<HealthCheckResult>>

Delegato che fornisce l'implementazione del controllo integrità.

tags
IEnumerable<String>

Elenco di tag che è possibile usare per filtrare i controlli integrità.

Restituisce

Oggetto IHealthChecksBuilder.

Si applica a

AddAsyncCheck(IHealthChecksBuilder, String, Func<Task<HealthCheckResult>>, IEnumerable<String>)

Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Parametri

name
String

Nome del controllo integrità.

check
Func<Task<HealthCheckResult>>

Delegato che fornisce l'implementazione del controllo integrità.

tags
IEnumerable<String>

Elenco di tag che è possibile usare per filtrare i controlli integrità.

Restituisce

Oggetto IHealthChecksBuilder.

Si applica a

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

Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Parametri

name
String

Nome del controllo integrità.

check
Func<CancellationToken,Task<HealthCheckResult>>

Delegato che fornisce l'implementazione del controllo integrità.

tags
IEnumerable<String>

Elenco di tag che è possibile usare per filtrare i controlli integrità.

timeout
Nullable<TimeSpan>

Oggetto TimeSpan facoltativo che rappresenta il timeout del controllo.

Restituisce

Oggetto IHealthChecksBuilder.

Si applica a

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

Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs
Origine:
HealthChecksBuilderDelegateExtensions.cs

Aggiunge un nuovo controllo integrità con il nome e l'implementazione specificati.

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

Parametri

name
String

Nome del controllo integrità.

check
Func<Task<HealthCheckResult>>

Delegato che fornisce l'implementazione del controllo integrità.

tags
IEnumerable<String>

Elenco di tag che è possibile usare per filtrare i controlli integrità.

timeout
Nullable<TimeSpan>

Oggetto TimeSpan facoltativo che rappresenta il timeout del controllo.

Restituisce

Oggetto IHealthChecksBuilder.

Si applica a