private MessageBusiness() { string connStr = System.Configuration.ConfigurationManager.AppSettings["RedisConnectString"]; _redis = RedisOperator.NewInstance(connStr); _workState = false; }
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"]; }