public YandexMarketParserController(
     IYandexMarketCategoryService yandexMarketCategoryService,
     IYandexMarketProductService yandexMarketProductService)
 {
     _yandexMarketCategoryService = yandexMarketCategoryService;
     _yandexMarketProductService  = yandexMarketProductService;
 }
示例#2
0
        public void Init(string urlCategoryForParsing, ILogger logger, IYandexMarketCategoryService yandexMarketCategoryService)
        {
            this.mLogger = logger;

            this.UrlCategoryForParsing        = urlCategoryForParsing;
            this._yandexMarketCategoryService = yandexMarketCategoryService;
        }
示例#3
0
 public YandexMarketSpecImportController(
     IYandexMarketSpecService yandexMarketSpecService,
     IYandexMarketCategoryService yandexMarketCategoryService,
     ISpecificationAttributeService2 specificationAttributeService,
     ILogger logger)
 {
     _yandexMarketSpecService       = yandexMarketSpecService;
     _yandexMarketCategoryService   = yandexMarketCategoryService;
     _specificationAttributeService = specificationAttributeService;
     _logger = logger;
 }
示例#4
0
 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 YandexMarketProductService(
     ICacheManager cacheManager,
     IRepository2 <YandexMarketProductRecord> productRepository,
     IYandexMarketCategoryService yandexMarketCategoryService,
     IProductService productService,
     IYugCatalogPriceParserService yugCatalogPriceParserService)
 {
     this._cacheManager                = cacheManager;
     this._productRepository           = productRepository;
     this._yandexMarketCategoryService = yandexMarketCategoryService;
     this._productService              = productService;
     _yugCatalogPriceParserService     = yugCatalogPriceParserService;
 }
示例#7
0
 public YandexMarketParserCategoryController(
     IYandexMarketCategoryService yandexMarketCategoryService,
     ICategoryService shopCategoryService,
     IProductService productService,
     IStoreContext storeContext,
     ILogger logger,
     IUrlRecordService urlRecordService)
 {
     this._yandexMarketCategoryService = yandexMarketCategoryService;
     _shopCategoryService = shopCategoryService;
     this._productService = productService;
     _storeContext        = storeContext;
     _logger = logger;
     this._urlRecordService = urlRecordService;
 }
 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;
 }
示例#9
0
        public static BaseParserCategories Create(string productsPageUrl, ILogger logger, IYandexMarketCategoryService _yandexMarketCategoryService)
        {
            BaseParserCategories parser = null;

            if (productsPageUrl.Contains("yugcontract.ua"))
            {
                parser = new UgContractParserCategory();
            }
            //else if (productsPageUrl.Contains("market.yandex"))
            //	parser = new YandexMarketParser();
            else
            {
                throw new Exception("Can't define parser type for url=" + productsPageUrl);
            }

            parser.Init(productsPageUrl, logger, _yandexMarketCategoryService);

            return(parser);
        }
 public YandexMarketCategoryController(IYandexMarketCategoryService yandexMarketCategoryService)
 {
     _yandexMarketCategoryService = yandexMarketCategoryService;
 }