Esempio n. 1
0
        private MessageBusiness()
        {
            string connStr = System.Configuration.ConfigurationManager.AppSettings["RedisConnectString"];

            _redis     = RedisOperator.NewInstance(connStr);
            _workState = false;
        }
Esempio n. 2
0
        private CollectorBusiness()
        {
            _collectorList = new List <string>();
            string connStr = System.Configuration.ConfigurationManager.AppSettings["RedisConnectString"];

            _redis = RedisOperator.NewInstance(connStr);

            _checkCollectorStateInterval = Convert.ToInt32(ConfigurationManager.AppSettings["CheckCollectorStateInterval"]);
            _collectorStateKeyInRedis    = ConfigurationManager.AppSettings["CollectorStateKeyInRedis"];
        }