Пример #1
0
        /// <summary>
        ///		Install the plugin.
        ///		Add all necessary tasks.
        ///		Add all the default settings.
        /// </summary>
        public override async System.Threading.Tasks.Task InstallAsync()
        {
            await AddTaskAsync("SliExport", 86400);

            await _settingService.SaveSettingAsync(SliExportSettings.Default());

            await base.InstallAsync();
        }
Пример #2
0
        public SliExportTask(
            ISettingService settingService,
            IManufacturerService manufacturerService,
            IUrlRecordService urlRecordService,
            IStoreMappingService storeMappingService,
            IPriceCalculationService priceCalcService,
            ICategoryService categoryService,
            IPictureService pictureService,
            ICustomerService customerService,
            IRepository <ProductAbcDescription> productAbcDescriptionRepository,
            IRepository <Product> productRepository,
            IRepository <ProductCartPrice> productCartPriceRepository,
            ILogger logger,
            INopDataProvider nopDbContext,
            MediaSettings mediaSettings,
            FrontEndService frontendService,
            ISpecificationAttributeService specificationAttributeService,
            IStoreService storeService,
            IAbcPromoService abcPromoService,
            SliExportSettings sliExportSettings
            )
        {
            _settingService                  = settingService;
            _manufacturerService             = manufacturerService;
            _urlRecordService                = urlRecordService;
            _storeMappingService             = storeMappingService;
            _priceCalculationService         = priceCalcService;
            _categoryService                 = categoryService;
            _pictureService                  = pictureService;
            _customerService                 = customerService;
            _productAbcDescriptionRepository = productAbcDescriptionRepository;
            _productRepository               = productRepository;
            _productCartPriceRepository      = productCartPriceRepository;
            _logger        = logger;
            _nopDbContext  = nopDbContext;
            _mediaSettings = mediaSettings;

            _settings = sliExportSettings;

            _frontendService = frontendService;
            _specificationAttributeService = specificationAttributeService;
            _storeService    = storeService;
            _abcPromoService = abcPromoService;
        }