예제 #1
0
        public async Task <IActionResult> Get()
        {
            var reports = await healthCheckService.CheckHealthAsync();

            var models = HealthReportModel.CreateFromReport(reports, "Identity");

            return(Ok(models));
        }
예제 #2
0
        public async Task <IActionResult> Index()
        {
            var models = new List <HealthReportModel>();

            models.AddRange(await endpointsHealthService.GetIdentityHealthReport());
            models.AddRange(await endpointsHealthService.GetApiHealthReport());
            models.AddRange(HealthReportModel.CreateFromReport(await healthCheckService.CheckHealthAsync(), "Admin"));

            return(View(models));
        }