Example #1
0
 private void Init()
 {
     _redisDesHash              = CacheProductDesciptioHash.Instance();
     _jobClientLogChangePrice   = new MqLogChangePrice();
     _jobClientLogChangeProduct = MQLogChangeProduct.Instance();
     _dicDuplicate              = new Dictionary <long, long>();
     _dicCacheProduct           = new Dictionary <long, ProductCache>();
     _linksQueue             = new Queue <NSCrawler.Job>();
     _productAdapter         = new ProductAdapter(new SqlDb(Server.ConnectionString));
     _redisWaitCrawler       = RedisCompanyWaitCrawler.Instance();
     _redisProduct           = RedisCacheProductInfo.Instance();
     _redisProductLastUpdate = RedisLastUpdateProduct.Instance();
     _publiserDesciption     = new PublisherDesciption();
 }
Example #2
0
        private void InitData()
        {
            _productAdapter = new ProductAdapter(new SqlDb(Server.ConnectionString));


            _linkQueue          = new Queue <string>();
            _crcProductOldGroup = new Dictionary <long, bool>();
            _visitedCrc         = new Dictionary <long, bool>();
            _productsReloaded   = new List <long>();

            _redisQueueFindNew        = RedisQueueFindNew.Instance();
            _redisCacheCompanyCrawler = RedisCacheCompanyCrawler.Instance();
            _redisLastUpdateProduct   = RedisLastUpdateProduct.Instance();
            _redisWaitCrawler         = RedisCompanyWaitCrawler.Instance();
            _redisCrcVisited          = RedisCrcVisitedFindNew.Instance();

            _mqLogQueueVisit  = MQLogQueueVisit.Instance();
            _mqLogWarning     = MQLogWarningFindNew.Instance();
            _mqLogChangePrice = new MqLogChangePrice();
        }