Ejemplo n.º 1
0
        public async Task <HealthReport> GetAsync(string tag, CancellationToken cancelationToken)
        {
            var report = await _healthService.GetHealthAsync(tag, cancelationToken);

            Response.StatusCode = report.IsSuccessful ? StatusCodes.Status200OK : StatusCodes.Status503ServiceUnavailable;
            return(report);
        }