public WorkerReload(int indexThread, CancellationToken cancellationToken, string session, PublisherDesciption publiserDesciption) { Init(); _indexThread = indexThread; TokenCrawler = cancellationToken; _session = session; _publiserDesciption = publiserDesciption; }
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(); }
public WorkerReload(PublisherDesciption publiserDesciption) { _publiserDesciption = publiserDesciption; Init(); }