public ShopConnectorService( IRepository <ShopConnectorConnectionRecord> connectionRepository, IRepository <ShopConnectorSkuMapping> skuMappingRepository, ICommonServices services, IDateTimeHelper dateTimeHelper, AdminAreaSettings adminAreaSettings, IManufacturerService manufacturerService, ITaxCategoryService taxCategoryService, Lazy <IMediaService> mediaService, Lazy <IPluginFinder> pluginFinder, Lazy <IRepository <StoreMapping> > storeMappingRepository, Lazy <ICategoryService> categoryService, Lazy <IExportProfileService> exportProfileService, Lazy <IDataExporter> dataExporter, Lazy <ICatalogSearchService> catalogSearchService, IAsyncState asyncState, ShopConnectorSettings shopConnectorSettings) { _connectionRepository = connectionRepository; _skuMappingRepository = skuMappingRepository; _services = services; _dateTimeHelper = dateTimeHelper; _adminAreaSettings = adminAreaSettings; _manufacturerService = manufacturerService; _taxCategoryService = taxCategoryService; _mediaService = mediaService; _pluginFinder = pluginFinder; _storeMappingRepository = storeMappingRepository; _categoryService = categoryService; _exportProfileService = exportProfileService; _dataExporter = dataExporter; _catalogSearchService = catalogSearchService; _asyncState = asyncState; _shopConnectorSettings = shopConnectorSettings; }
public ShopConnectorExportController( IShopConnectorService connectorService, ShopConnectorSettings shopConnectorSettings) { _connectorService = connectorService; _shopConnectorSettings = shopConnectorSettings; }
public void Copy(ShopConnectorSettings settings, bool fromSettings) { if (fromSettings) { IsImportEnabled = settings.IsImportEnabled; IsExportEnabled = settings.IsExportEnabled; ValidMinutePeriod = settings.ValidMinutePeriod; LogUnauthorized = settings.LogUnauthorized; ImageDownloadTimeout = settings.ImageDownloadTimeout; EnableSkuMapping = settings.EnableSkuMapping; EnableSkuImport = settings.EnableSkuImport; } else { settings.IsImportEnabled = IsImportEnabled; settings.IsExportEnabled = IsExportEnabled; settings.ValidMinutePeriod = ValidMinutePeriod; settings.LogUnauthorized = LogUnauthorized; settings.ImageDownloadTimeout = ImageDownloadTimeout; settings.EnableSkuMapping = EnableSkuMapping; settings.EnableSkuImport = EnableSkuImport; } }