Ejemplo n.º 1
0
        public async Task <HealthCheckResult> GetCosmosDbHealth()
        {
            _logger.LogInformation(traceSearchString + "about to get cosmos db health");
            var health = await _healthService.GetCosmosStatusAsync();

            var healthResult = health.CosmosStatus == "ok" ? HealthCheckResult.Healthy() : HealthCheckResult.Unhealthy();

            return(healthResult);
        }