public YandexMarketParserController( IYandexMarketCategoryService yandexMarketCategoryService, IYandexMarketProductService yandexMarketProductService) { _yandexMarketCategoryService = yandexMarketCategoryService; _yandexMarketProductService = yandexMarketProductService; }
public YandexMarketSpecService(ICacheManager cacheManager, IRepository <YandexMarketSpecRecord> specRepository, IYandexMarketProductService yandexMarketProductService) { this._cacheManager = cacheManager; this._specRepository = specRepository; _yandexMarketProductService = yandexMarketProductService; }
public YandexMarketParserController( IYandexMarketCategoryService yandexMarketCategoryService, IYandexMarketProductService yandexMarketProductService, ICategoryService shopCategoryService, ILogger logger) { _yandexMarketCategoryService = yandexMarketCategoryService; _yandexMarketProductService = yandexMarketProductService; _shopCategoryService = shopCategoryService; _logger = logger; }
public YandexMarketCategoryController( IYandexMarketProductService yandexMarketProductService, IYandexMarketCategoryService yandexMarketCategoryService, ICategoryService shopCategoryService, IProductService productService, IStoreContext storeContext) { _yandexMarketProductService = yandexMarketProductService; this._yandexMarketCategoryService = yandexMarketCategoryService; _shopCategoryService = shopCategoryService; this._productService = productService; _storeContext = storeContext; }
public void Init(string catalogName, int parserCategoryId, int parseNotMoreThen, string productsPageUrl, ILogger logger, IYandexMarketProductService yandexMarketProductService) { this.mImageFolderPathForProductList = catalogName; this.ParseNotMoreThen = parseNotMoreThen; this.mLogger = logger; ParserCategoryId = parserCategoryId; ProductsPageUrl = productsPageUrl; _yandexMarketProductService = yandexMarketProductService; ProductsArtikulsInPiceList = GetProductsArtikulsInPiceList(); // Удаляем фантомные продукты из базы, если они появились в прайсе DeleteFromDbAppearedInPriceListFantoms(ParserCategoryId, ProductsArtikulsInPiceList); ExistedProductUrlList = _yandexMarketProductService.GetByCategory(parserCategoryId, withFantoms: true, withVendorExisting: false) .Select(s => new ExistedProduct { Url = s.Url, IsFantom = s.IsNotInPriceList }) .ToList(); }
public YandexMarketProductController(IYandexMarketProductService yandexMarketProductService, IProductService productService, IUrlRecordService urlRecordService, ICategoryService categoryService, IPictureService pictureService, ISpecificationAttributeService2 specificationAttributeService, IYandexMarketCategoryService yandexMarketCategoryService, ILogger logger, SeoSettings seoSettings, IPriceManagerService priceManagerService) { _yandexMarketProductService = yandexMarketProductService; _productService = productService; _urlRecordService = urlRecordService; _categoryService = categoryService; _pictureService = pictureService; _specificationAttributeService = specificationAttributeService; _yandexMarketCategoryService = yandexMarketCategoryService; _logger = logger; _seoSettings = seoSettings; _priceManagerService = priceManagerService; }
public static BaseParser Create(string catalogName, int parserCategoryId, int parseNotMoreThen, string productsPageUrl, ILogger logger, IYandexMarketProductService _yandexMarketProductService) { BaseParser parser = null; if (productsPageUrl.Contains("yugcontract.ua")) { parser = new UgContractParser(); } else if (productsPageUrl.Contains("market.yandex")) { parser = new YandexMarketParser(); } else { throw new Exception("Can't define parser type for url=" + productsPageUrl); } parser.Init(catalogName, parserCategoryId, parseNotMoreThen, productsPageUrl, logger, _yandexMarketProductService); return(parser); }
public YandexMarketProductController(IYandexMarketProductService yandexMarketProductService) { _yandexMarketProductService = yandexMarketProductService; }