Пример #1
0
		public DataImportTask(
			IDataImporter importer,
			IImportProfileService importProfileService)
		{
			_importer = importer;
			_importProfileService = importProfileService;
		}
Пример #2
0
        public DataImporter(
            ICommonServices services,
            IImportProfileService importProfileService,
            ILanguageService languageService,
            Func <ImportEntityType, IEntityImporter> importerFactory,
            Lazy <IEmailAccountService> emailAccountService,
            Lazy <IEmailSender> emailSender,
            Lazy <ContactDataSettings> contactDataSettings,
            Lazy <DataExchangeSettings> dataExchangeSettings,
            IDbCache dbCache,
            IUrlRecordService urlRecordService,
            ILocalizedEntityService localizedEntityService)
        {
            _services             = services;
            _importProfileService = importProfileService;
            _languageService      = languageService;
            _importerFactory      = importerFactory;
            _emailAccountService  = emailAccountService;
            _emailSender          = emailSender;
            _contactDataSettings  = contactDataSettings;
            _dataExchangeSettings = dataExchangeSettings;
            _dbCache                = dbCache;
            _urlRecordService       = urlRecordService;
            _localizedEntityService = localizedEntityService;

            T = NullLocalizer.Instance;
        }
        public DataImportTask(
			IDataImporter importer,
			IImportProfileService importProfileService)
        {
            _importer = importer;
            _importProfileService = importProfileService;
        }
Пример #4
0
 public ImportController(
     IImportProfileService importService,
     IDateTimeHelper dateTimeHelper,
     ITaskScheduler taskScheduler,
     ILanguageService languageService)
 {
     _importProfileService = importService;
     _dateTimeHelper       = dateTimeHelper;
     _taskScheduler        = taskScheduler;
     _languageService      = languageService;
 }
        public ImportController(
			IImportProfileService importService,
			IDateTimeHelper dateTimeHelper,
			ITaskScheduler taskScheduler,
			ILanguageService languageService)
        {
            _importProfileService = importService;
            _dateTimeHelper = dateTimeHelper;
            _taskScheduler = taskScheduler;
            _languageService = languageService;
        }
Пример #6
0
 public ImportController(
     IImportProfileService importService,
     ITaskScheduler taskScheduler,
     IScheduleTaskService scheduleTaskService,
     AdminModelHelper adminModelHelper)
 {
     _importProfileService = importService;
     _taskScheduler        = taskScheduler;
     _scheduleTaskService  = scheduleTaskService;
     _adminModelHelper     = adminModelHelper;
 }
Пример #7
0
 public ImportController(
     SmartDbContext db,
     IImportProfileService importProfileService,
     ITaskStore taskStore,
     ITaskScheduler taskScheduler)
 {
     _db = db;
     _importProfileService = importProfileService;
     _taskStore            = taskStore;
     _taskScheduler        = taskScheduler;
 }
 public ImportProfileController(ILocalizationService localizationService,
                                IRepository <ImportProfile> importProfileRepository,
                                IImportProfileService importProfileService,
                                QuartzScheduler quartzScheduler,
                                IPermissionService permissionService,
                                HttpContextBase httpContext,
                                IWorkContext workContext,
                                IDbContext dbContext)
 {
     this._localizationService     = localizationService;
     this._quartzScheduler         = quartzScheduler;
     this._importProfileRepository = importProfileRepository;
     this._importProfileService    = importProfileService;
     this._permissionService       = permissionService;
     this._httpContext             = httpContext;
     this._workContext             = workContext;
     this._dbContext = dbContext;
 }
Пример #9
0
 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;
 }
Пример #10
0
        public DataImporter(
			ICommonServices services,
			IImportProfileService importProfileService,
			ILanguageService languageService,
			Func<ImportEntityType, IEntityImporter> importerFactory,
			Lazy<IEmailAccountService> emailAccountService,
			Lazy<IEmailSender> emailSender,
			Lazy<ContactDataSettings> contactDataSettings,
			Lazy<DataExchangeSettings> dataExchangeSettings)
        {
            _services = services;
            _importProfileService = importProfileService;
            _languageService = languageService;
            _importerFactory = importerFactory;
            _emailAccountService = emailAccountService;
            _emailSender = emailSender;
            _contactDataSettings = contactDataSettings;
            _dataExchangeSettings = dataExchangeSettings;

            T = NullLocalizer.Instance;
        }
Пример #11
0
        public DataImporter(
            ICommonServices services,
            ICustomerService customerService,
            IImportProfileService importProfileService,
            Lazy <IRepository <NewsLetterSubscription> > subscriptionRepository,
            Lazy <IRepository <Picture> > pictureRepository,
            Lazy <IRepository <ProductPicture> > productPictureRepository,
            Lazy <IRepository <ProductManufacturer> > productManufacturerRepository,
            Lazy <IRepository <ProductCategory> > productCategoryRepository,
            Lazy <IRepository <UrlRecord> > urlRecordRepository,
            Lazy <IRepository <Product> > productRepository,
            Lazy <IRepository <Customer> > customerRepository,
            Lazy <IRepository <Category> > categoryRepository,
            Lazy <ILanguageService> languageService,
            Lazy <ILocalizedEntityService> localizedEntityService,
            Lazy <IPictureService> pictureService,
            Lazy <IManufacturerService> manufacturerService,
            Lazy <ICategoryService> categoryService,
            Lazy <ICategoryTemplateService> categoryTemplateService,
            Lazy <IProductTemplateService> productTemplateService,
            Lazy <IProductService> productService,
            Lazy <IUrlRecordService> urlRecordService,
            Lazy <IStoreMappingService> storeMappingService,
            Lazy <IGenericAttributeService> genericAttributeService,
            Lazy <IAffiliateService> affiliateService,
            Lazy <ICountryService> countryService,
            Lazy <IStateProvinceService> stateProvinceService,
            Lazy <IEmailAccountService> emailAccountService,
            Lazy <IEmailSender> emailSender,
            Lazy <FileDownloadManager> fileDownloadManager,
            Lazy <SeoSettings> seoSettings,
            Lazy <CustomerSettings> customerSettings,
            Lazy <DateTimeSettings> dateTimeSettings,
            Lazy <ForumSettings> forumSettings,
            Lazy <ContactDataSettings> contactDataSettings,
            Lazy <DataExchangeSettings> dataExchangeSettings)
        {
            _services             = services;
            _customerService      = customerService;
            _importProfileService = importProfileService;

            _subscriptionRepository        = subscriptionRepository;
            _pictureRepository             = pictureRepository;
            _productPictureRepository      = productPictureRepository;
            _productManufacturerRepository = productManufacturerRepository;
            _productCategoryRepository     = productCategoryRepository;
            _urlRecordRepository           = urlRecordRepository;
            _productRepository             = productRepository;
            _customerRepository            = customerRepository;
            _categoryRepository            = categoryRepository;

            _languageService         = languageService;
            _localizedEntityService  = localizedEntityService;
            _pictureService          = pictureService;
            _manufacturerService     = manufacturerService;
            _categoryService         = categoryService;
            _categoryTemplateService = categoryTemplateService;
            _productTemplateService  = productTemplateService;
            _productService          = productService;
            _urlRecordService        = urlRecordService;
            _storeMappingService     = storeMappingService;
            _genericAttributeService = genericAttributeService;
            _affiliateService        = affiliateService;
            _countryService          = countryService;
            _stateProvinceService    = stateProvinceService;
            _emailAccountService     = emailAccountService;
            _emailSender             = emailSender;
            _fileDownloadManager     = fileDownloadManager;

            _seoSettings          = seoSettings;
            _customerSettings     = customerSettings;
            _dateTimeSettings     = dateTimeSettings;
            _forumSettings        = forumSettings;
            _contactDataSettings  = contactDataSettings;
            _dataExchangeSettings = dataExchangeSettings;

            T = NullLocalizer.Instance;
        }