public CustomerImporter( IRepository <Customer> customerRepository, IRepository <Picture> pictureRepository, ICommonServices services, IGenericAttributeService genericAttributeService, ICustomerService customerService, IPictureService pictureService, IAffiliateService affiliateService, ICountryService countryService, IStateProvinceService stateProvinceService, FileDownloadManager fileDownloadManager, CustomerSettings customerSettings, DateTimeSettings dateTimeSettings, ForumSettings forumSettings, DataExchangeSettings dataExchangeSettings) { _customerRepository = customerRepository; _pictureRepository = pictureRepository; _services = services; _genericAttributeService = genericAttributeService; _customerService = customerService; _pictureService = pictureService; _affiliateService = affiliateService; _countryService = countryService; _stateProvinceService = stateProvinceService; _fileDownloadManager = fileDownloadManager; _customerSettings = customerSettings; _dateTimeSettings = dateTimeSettings; _forumSettings = forumSettings; _dataExchangeSettings = dataExchangeSettings; }
public CategoryImporter( IRepository <Category> categoryRepository, IRepository <UrlRecord> urlRecordRepository, IRepository <Picture> pictureRepository, ICommonServices services, IUrlRecordService urlRecordService, ICategoryTemplateService categoryTemplateService, IStoreMappingService storeMappingService, IPictureService pictureService, ILocalizedEntityService localizedEntityService, FileDownloadManager fileDownloadManager, SeoSettings seoSettings, DataExchangeSettings dataExchangeSettings) { _categoryRepository = categoryRepository; _urlRecordRepository = urlRecordRepository; _pictureRepository = pictureRepository; _services = services; _urlRecordService = urlRecordService; _categoryTemplateService = categoryTemplateService; _storeMappingService = storeMappingService; _pictureService = pictureService; _localizedEntityService = localizedEntityService; _fileDownloadManager = fileDownloadManager; _seoSettings = seoSettings; _dataExchangeSettings = dataExchangeSettings; }
public void Init(IImportExecuteContext context, DataExchangeSettings dataExchangeSettings) { UtcNow = DateTime.UtcNow; DownloadedItems = new Dictionary <string, string>(); ImageDownloadFolder = Path.Combine(context.ImportFolder, _imageDownloadFolder); if (dataExchangeSettings.ImageImportFolder.HasValue()) { ImageFolder = Path.Combine(context.ImportFolder, dataExchangeSettings.ImageImportFolder); } else { ImageFolder = context.ImportFolder; } if (!System.IO.Directory.Exists(ImageDownloadFolder)) { System.IO.Directory.CreateDirectory(ImageDownloadFolder); } DownloaderContext = new FileDownloadManagerContext { Timeout = TimeSpan.FromMinutes(dataExchangeSettings.ImageDownloadTimeout), Logger = context.Log, CancellationToken = context.CancellationToken }; }
public IActionResult DataExchange(DataExchangeSettings settings) { var model = new DataExchangeSettingsModel(); MiniMapper.Map(settings, model); return(View(model)); }
public ExportProfileService( SmartDbContext db, ILocalizationService localizationService, DataExchangeSettings dataExchangeSettings) { _db = db; _localizationService = localizationService; _dataExchangeSettings = dataExchangeSettings; }
public IActionResult DataExchange(DataExchangeSettings settings, DataExchangeSettingsModel model) { if (!ModelState.IsValid) { return(DataExchange(settings)); } ModelState.Clear(); MiniMapper.Map(model, settings); return(NotifyAndRedirect("DataExchange")); }
public ImportProfileService( IRepository <ImportProfile> importProfileRepository, IScheduleTaskService scheduleTaskService, ILocalizationService localizationService, ILanguageService languageService, DataExchangeSettings dataExchangeSettings) { _importProfileRepository = importProfileRepository; _scheduleTaskService = scheduleTaskService; _localizationService = localizationService; _languageService = languageService; _dataExchangeSettings = dataExchangeSettings; }
public ExportProfileService( IRepository <ExportProfile> exportProfileRepository, IRepository <ExportDeployment> exportDeploymentRepository, IEventPublisher eventPublisher, IScheduleTaskService scheduleTaskService, IProviderManager providerManager, DataExchangeSettings dataExchangeSettings, ILocalizationService localizationService) { _exportProfileRepository = exportProfileRepository; _exportDeploymentRepository = exportDeploymentRepository; _eventPublisher = eventPublisher; _scheduleTaskService = scheduleTaskService; _providerManager = providerManager; _dataExchangeSettings = dataExchangeSettings; _localizationService = localizationService; }
public DataImporter( ICommonServices services, ILifetimeScopeAccessor scopeAccessor, IImportProfileService importProfileService, ILanguageService languageService, IEmailAccountService emailAccountService, IMailService mailService, ContactDataSettings contactDataSettings, DataExchangeSettings dataExchangeSettings) { _services = services; _scopeAccessor = scopeAccessor; _importProfileService = importProfileService; _languageService = languageService; _emailAccountService = emailAccountService; _mailService = mailService; _contactDataSettings = contactDataSettings; _dataExchangeSettings = dataExchangeSettings; }
public ExportController( SmartDbContext db, IExportProfileService exportProfileService, ICategoryService categoryService, IDataExporter dataExporter, ITaskScheduler taskScheduler, IProviderManager providerManager, ITaskStore taskStore, DataExchangeSettings dataExchangeSettings, CustomerSettings customerSettings) { _db = db; _exportProfileService = exportProfileService; _categoryService = categoryService; _dataExporter = dataExporter; _taskScheduler = taskScheduler; _providerManager = providerManager; _taskStore = taskStore; _dataExchangeSettings = dataExchangeSettings; _customerSettings = customerSettings; }
public ProductImporter( IRepository <ProductPicture> productPictureRepository, IRepository <ProductManufacturer> productManufacturerRepository, IRepository <ProductCategory> productCategoryRepository, IRepository <UrlRecord> urlRecordRepository, IRepository <Product> productRepository, ICommonServices services, ILocalizedEntityService localizedEntityService, IPictureService pictureService, IManufacturerService manufacturerService, ICategoryService categoryService, IProductService productService, IUrlRecordService urlRecordService, IProductTemplateService productTemplateService, IStoreMappingService storeMappingService, FileDownloadManager fileDownloadManager, SeoSettings seoSettings, DataExchangeSettings dataExchangeSettings) { _productPictureRepository = productPictureRepository; _productManufacturerRepository = productManufacturerRepository; _productCategoryRepository = productCategoryRepository; _urlRecordRepository = urlRecordRepository; _productRepository = productRepository; _services = services; _localizedEntityService = localizedEntityService; _pictureService = pictureService; _manufacturerService = manufacturerService; _categoryService = categoryService; _productService = productService; _urlRecordService = urlRecordService; _productTemplateService = productTemplateService; _storeMappingService = storeMappingService; _fileDownloadManager = fileDownloadManager; _seoSettings = seoSettings; _dataExchangeSettings = dataExchangeSettings; }