DefaultRedisConnectionCheckCheckConnectionAsync - метод
Проверить наличие соединения с СУБД Redis.
Пространство имён: Tessa.Web.ServicesСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
protected virtual Task<HealthCheckResult?> CheckConnectionAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default
)
Protected Overridable Function CheckConnectionAsync (
context As HealthCheckContext,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of HealthCheckResult?)
protected:
virtual Task<Nullable<HealthCheckResult^>>^ CheckConnectionAsync(
HealthCheckContext^ context,
CancellationToken cancellationToken = CancellationToken()
)
abstract CheckConnectionAsync :
context : HealthCheckContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<Nullable<HealthCheckResult>>
override CheckConnectionAsync :
context : HealthCheckContext *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<Nullable<HealthCheckResult>>
- context HealthCheckContext
- Контекст проверки работоспособности.
- cancellationToken CancellationToken (Optional)
- Объект для отмены асинхронной операции.
TaskNullableHealthCheckResultnull - в случае отсутствия ошибок,
иначе
HealthCheckResult с описанием ошибки.