Class GatewayCircuitBreakerHealthCheck
- Namespace
- Virtufin.Api.HealthChecks
- Assembly
- Virtufin.Api.dll
Health check that reports the gateway circuit breaker's state.
public sealed class GatewayCircuitBreakerHealthCheck : IHealthCheck
- Inheritance
-
GatewayCircuitBreakerHealthCheck
- Implements
- Inherited Members
Constructors
GatewayCircuitBreakerHealthCheck(GatewayResiliencePipeline)
public GatewayCircuitBreakerHealthCheck(GatewayResiliencePipeline resilience)
Parameters
resilienceGatewayResiliencePipeline
Methods
CheckHealthAsync(HealthCheckContext, CancellationToken)
Runs the health check, returning the status of the component being checked.
public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Parameters
contextHealthCheckContextA context object associated with the current execution.
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the health check.
Returns
- Task<HealthCheckResult>
A Task<TResult> that completes when the health check has finished, yielding the status of the component being checked.