Пример #1
0
        public async Task <IActionResult> GetStatus()
        {
            var healthIssues = await _healthService.GetHealthIssuesAsync();

            return(Ok(new IsAliveResponse
            {
                Name = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationName,
                Version = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationVersion,
                Env = Program.EnvInfo,
                IsDebug = true,
                IssueIndicators = healthIssues
                                  .Select(i => new IsAliveResponse.IssueIndicator
                {
                    Type = i.Type,
                    Value = i.Value
                })
            }));
        }