DefaultDatabaseConnectionCheckCheckHealthAsync - метод |
Пространство имён:
Tessa.Web.Services
Сборка:
Tessa.Web (в Tessa.Web.dll) Версия: 3.5.0.19
Синтаксис public Task<HealthCheckResult> CheckHealthAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default
)
Public Function CheckHealthAsync (
context As HealthCheckContext,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of HealthCheckResult)
public:
virtual Task<HealthCheckResult>^ CheckHealthAsync(
HealthCheckContext^ context,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract CheckHealthAsync :
context : HealthCheckContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<HealthCheckResult>
override CheckHealthAsync :
context : HealthCheckContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<HealthCheckResult>
Параметры
- context
- Тип: Microsoft.Extensions.Diagnostics.HealthChecksHealthCheckContext
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskHealthCheckResultСм. также