Пример #1
0
        public healthcheck()
        {
            var logManager = DependencyInjectionHelper.ResolveService <ILogManager>();

            var config = new HealthCheckConfig
            {
                MongoDbConnectionString = ConfigurationManager.ConnectionStrings["analytics"].ConnectionString,
            };

            _healthCheckService = new BasicHealthCheckService(logManager, config);
        }
        public healthcheck()
        {
            var logManager      = DependencyInjectionHelper.ResolveService <ILogManager>();
            var nomisApiService = DependencyInjectionHelper.ResolveService <INomisApiService>();

            var config = new HealthCheckConfig
            {
                MongoDbConnectionString = ConfigurationManager.ConnectionStrings["analytics"].ConnectionString,
                RedisDbConnectionString = ConfigurationManager.ConnectionStrings["redis.sessions"]?.ConnectionString,
                IdamHealthCheckUrl      = ConfigurationManager.AppSettings["HMPPS.Authentication.HealthCheckEndpoint"].ValueOrEmpty()
            };

            _extendedHealthCheckService = new ExtendedHealthCheckService(logManager, config, nomisApiService);
            _basicHealthCheckService    = new BasicHealthCheckService(logManager, config);
        }