//сделать опцию логгирования лишь в случае ошибки public ImportOneSTaskImportAll(IImportOneS importOneS, MiscOneSSettings miscOneSSettings, ILogger _logger, CategoryConfigs categoryConfigs) { _pathToExchange = miscOneSSettings.PathToExchange; _importOneS = importOneS; this._logger = _logger; _categoryConfigs = categoryConfigs; }
public ActionResult Configure() { var model = new MiscOneSSettings(); model.PathToExchange = _miscOneSSettings.PathToExchange; model.PublishOnlyBerikolesaStorage = _miscOneSSettings.PublishOnlyBerikolesaStorage; return(View("~/Plugins/Misc.OneS/Views/MiscOneS/Configure.cshtml", model)); }
public MiscOneSController(IImportOneS importOneS, ISettingService settingService, MiscOneSSettings miscOneSSettings, IWorkContext workContext, IStoreService storeService) { this._miscOneSSettings = miscOneSSettings; this._settingService = settingService; this._importOneS = importOneS; this._workContext = workContext; this._storeService = storeService; }
public ActionResult Configure(MiscOneSSettings model) { if (!ModelState.IsValid) { return(Configure()); } //save settings _miscOneSSettings.PathToExchange = model.PathToExchange; _miscOneSSettings.PublishOnlyBerikolesaStorage = model.PublishOnlyBerikolesaStorage; _settingService.SaveSetting(_miscOneSSettings); return(View("~/Plugins/Misc.OneS/Views/MiscOneS/Configure.cshtml", model)); }
public ImportOneSImpl( IProductService productService, ICategoryService categoryService, ISpecificationAttributeService specificationAttribute, IProductAttributeService productAttributeService, IUrlRecordService urlRecordService, IRepository <Product> producRepository, MiscOneSSettings miscOneSSetting) { _productService = productService; _categoryService = categoryService; _specificationAttributeService = specificationAttribute; _productAttributeService = productAttributeService; _urlRecordService = urlRecordService; _productRepository = producRepository; _miscOneSSetting = miscOneSSetting; _configImportCategoryEntity = new ConfigImportCategoryEntity(); }
public ExportOrder(ILocalizationService localizationService, IWorkContext workContext, IProductService productService, MiscOneSSettings miscOneSSettings) { _pathToExport = miscOneSSettings.PathToExchange + @"\Exchange\Export"; _localizationService = localizationService; _workContext = workContext; _productService = productService; }