예제 #1
0
 public async Task <HealthCheckResult> CheckHealthAsync(HealthCheckContext healthCheckContext,
                                                        CancellationToken cancellationToken = default)
 => await _messageBus.CheckHealthAsync()
             ? new HealthCheckResult(HealthStatus.Healthy)
             : new HealthCheckResult(HealthStatus.Unhealthy);