Example #1
0
        public ApiResponse <DeepHealthCheckResponse, ApiData> DeepHealthCheck()
        {
            var respVm = new DeepHealthCheckResponse
            {
                HealthStatus = new List <HealthCheckResponse>
                {
                    _agentConnectIntegration.HealthCheck(),
                _dlsIntegration.HealthCheck(),
                _partnerServiceIntegration.HealthCheck(),
                _openAmIntegration.HealthCheck(),
                _openIdmIntegration.HealthCheck(),
                _cacheIntegration.HealthCheck()
                }
            };

            var apiErrors = ProcessApiErrors(respVm);

            return(new ApiResponse <DeepHealthCheckResponse, ApiData>
            {
                BusinessMetadata = MapperHelper.SetResponseProperties(null, DataSource.Support),
                ResponseData = respVm,
                ApiErrors = apiErrors
            });
        }