HealthCheckService.CheckHealthAsync Metodo

Definizione

Overload

CheckHealthAsync(CancellationToken)

Esegue tutti i controlli integrità nell'applicazione e restituisce lo stato aggregato.

CheckHealthAsync(Func<HealthCheckRegistration,Boolean>, CancellationToken)

Esegue i controlli di integrità forniti e restituisce lo stato aggregato

CheckHealthAsync(CancellationToken)

Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs

Esegue tutti i controlli integrità nell'applicazione e restituisce lo stato aggregato.

public System.Threading.Tasks.Task<Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport> CheckHealthAsync (System.Threading.CancellationToken cancellationToken = default);
member this.CheckHealthAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport>
Public Function CheckHealthAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of HealthReport)

Parametri

cancellationToken
CancellationToken

Oggetto CancellationToken che è possibile usare per annullare i controlli integrità.

Restituisce

Oggetto Task<TResult> che viene completato dopo l'esecuzione di tutti i controlli integrità e che restituisce un oggetto HealthReport contenente i risultati.

Eccezioni

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a

CheckHealthAsync(Func<HealthCheckRegistration,Boolean>, CancellationToken)

Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs
Origine:
HealthCheckService.cs

Esegue i controlli di integrità forniti e restituisce lo stato aggregato

public abstract System.Threading.Tasks.Task<Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport> CheckHealthAsync (Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration,bool> predicate, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task<Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport> CheckHealthAsync (Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration,bool>? predicate, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckHealthAsync : Func<Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport>
Public MustOverride Function CheckHealthAsync (predicate As Func(Of HealthCheckRegistration, Boolean), Optional cancellationToken As CancellationToken = Nothing) As Task(Of HealthReport)

Parametri

predicate
Func<HealthCheckRegistration,Boolean>

Predicato che è possibile usare per includere i controlli integrità in base a criteri definiti dall'utente.

cancellationToken
CancellationToken

Oggetto CancellationToken che è possibile usare per annullare i controlli integrità.

Restituisce

Oggetto Task<TResult> che viene completato dopo l'esecuzione di tutti i controlli integrità e che restituisce un oggetto HealthReport contenente i risultati.

Eccezioni

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a