public OutputCachedContentShapeResult(string shapeType, Func<DriverResult> driverResultFactory, ICacheService cacheService, IOutputCachedPartsContext outputCachedPartsContext, ICacheKeyService cacheKeyService, ContentPart part, string cacheKey)
 {
     _cachedPartMetadata = new CachedPartMetadata(cacheKeyService.BuildFullCacheKey(part, cacheKey));
     _shapeType = shapeType;
     _driverResultFactory = driverResultFactory;
     _cacheService = cacheService;
     _outputCachedPartsContext = outputCachedPartsContext;
 }
Пример #2
0
 public DateRangeService(ICacheKeyService cacheKeyService,
                         IEventPublisher eventPublisher,
                         IRepository <DeliveryDate> deliveryDateRepository,
                         IRepository <ProductAvailabilityRange> productAvailabilityRangeRepository)
 {
     _cacheKeyService                    = cacheKeyService;
     _eventPublisher                     = eventPublisher;
     _deliveryDateRepository             = deliveryDateRepository;
     _productAvailabilityRangeRepository = productAvailabilityRangeRepository;
 }
Пример #3
0
 public ProductAttributeService(ICacheKeyService cacheKeyService,
                                IRepository <ProductAttribute> productAttributeRepository,
                                IRepository <ProductAttributeMapping> productAttributeMappingRepository,
                                IRepository <ProductAttributeValue> productAttributeValueRepository)
 {
     _cacheKeyService                   = cacheKeyService;
     _productAttributeRepository        = productAttributeRepository;
     _productAttributeMappingRepository = productAttributeMappingRepository;
     _productAttributeValueRepository   = productAttributeValueRepository;
 }
Пример #4
0
 public CustomerAttributeService(ICacheKeyService cacheKeyService,
                                 IEventPublisher eventPublisher,
                                 IRepository <CustomerAttribute> customerAttributeRepository,
                                 IRepository <CustomerAttributeValue> customerAttributeValueRepository)
 {
     _cacheKeyService                  = cacheKeyService;
     _eventPublisher                   = eventPublisher;
     _customerAttributeRepository      = customerAttributeRepository;
     _customerAttributeValueRepository = customerAttributeValueRepository;
 }
Пример #5
0
 public VendorAttributeService(ICacheKeyService cacheKeyService,
                               IEventPublisher eventPublisher,
                               IRepository <VendorAttribute> vendorAttributeRepository,
                               IRepository <VendorAttributeValue> vendorAttributeValueRepository)
 {
     _cacheKeyService                = cacheKeyService;
     _eventPublisher                 = eventPublisher;
     _vendorAttributeRepository      = vendorAttributeRepository;
     _vendorAttributeValueRepository = vendorAttributeValueRepository;
 }
Пример #6
0
 public AddressAttributeService(ICacheKeyService cacheKeyService,
                                IEventPublisher eventPublisher,
                                IRepository <AddressAttribute> addressAttributeRepository,
                                IRepository <AddressAttributeValue> addressAttributeValueRepository)
 {
     _cacheKeyService                 = cacheKeyService;
     _eventPublisher                  = eventPublisher;
     _addressAttributeRepository      = addressAttributeRepository;
     _addressAttributeValueRepository = addressAttributeValueRepository;
 }
Пример #7
0
 public ReviewTypeService(ICacheKeyService cacheKeyService,
                          IEventPublisher eventPublisher,
                          IRepository <ProductReviewReviewTypeMapping> productReviewReviewTypeMappingRepository,
                          IRepository <ReviewType> reviewTypeRepository)
 {
     _cacheKeyService = cacheKeyService;
     _eventPublisher  = eventPublisher;
     _productReviewReviewTypeMappingRepository = productReviewReviewTypeMappingRepository;
     _reviewTypeRepository = reviewTypeRepository;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="cacheKeyService">Cache key service</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="staticCacheManager">Cache manager</param>
 /// <param name="taxRateRepository">Tax rate repository</param>
 public CountryStateZipService(ICacheKeyService cacheKeyService,
                               IEventPublisher eventPublisher,
                               IRepository <TaxRate> taxRateRepository,
                               IStaticCacheManager staticCacheManager)
 {
     _cacheKeyService    = cacheKeyService;
     _eventPublisher     = eventPublisher;
     _taxRateRepository  = taxRateRepository;
     _staticCacheManager = staticCacheManager;
 }
 public TerritoriesServices(IRepository <Territories> territoriesRepository,
                            ICacheKeyService cacheKeyService,
                            IStaticCacheManager staticCacheManager,
                            IEventPublisher eventPublisher)
 {
     _cacheKeyService       = cacheKeyService;
     _territoriesRepository = territoriesRepository;
     _staticCacheManager    = staticCacheManager;
     _eventPublisher        = eventPublisher;
 }
 public StoreMappingService(CatalogSettings catalogSettings,
                            ICacheKeyService cacheKeyService,
                            IEventPublisher eventPublisher,
                            IRepository <StoreMapping> storeMappingRepository,
                            IStoreContext storeContext)
 {
     _catalogSettings        = catalogSettings;
     _cacheKeyService        = cacheKeyService;
     _eventPublisher         = eventPublisher;
     _storeMappingRepository = storeMappingRepository;
     _storeContext           = storeContext;
 }
Пример #11
0
 public ReturnRequestService(ICacheKeyService cacheKeyService,
                             IEventPublisher eventPublisher,
                             IRepository <ReturnRequest> returnRequestRepository,
                             IRepository <ReturnRequestAction> returnRequestActionRepository,
                             IRepository <ReturnRequestReason> returnRequestReasonRepository)
 {
     _cacheKeyService               = cacheKeyService;
     _eventPublisher                = eventPublisher;
     _returnRequestRepository       = returnRequestRepository;
     _returnRequestActionRepository = returnRequestActionRepository;
     _returnRequestReasonRepository = returnRequestReasonRepository;
 }
Пример #12
0
 public BraintreeMerchantService(ICacheKeyService cacheKeyService,
                                 ICurrencyService currencyService,
                                 IRepository <BraintreeMerchantRecord> btmrRepository,
                                 IStaticCacheManager staticCacheManager,
                                 IStoreContext storeContext)
 {
     _cacheKeyService    = cacheKeyService;
     _currencyService    = currencyService;
     _btmrRepository     = btmrRepository;
     _staticCacheManager = staticCacheManager;
     _storeContext       = storeContext;
 }
Пример #13
0
 public CategoryService(ICacheKeyService cacheKeyService, IEventPublisher eventPublisher, IRepository <Category> categoryRepository, IRepository <RentalPost> postRepository,
                        IRepository <PostCategoryMapping> postCategoryRepository, IStaticCacheManager staticCacheManager, IWorkContext workContext, ILogger logger)
 {
     _cacheKeyService        = cacheKeyService;
     _eventPublisher         = eventPublisher;
     _categoryRepository     = categoryRepository;
     _postRepository         = postRepository;
     _postCategoryRepository = postCategoryRepository;
     _staticCacheManager     = staticCacheManager;
     _workContext            = workContext;
     _logger = logger;
 }
Пример #14
0
 public LocalizedEntityService(ICacheKeyService cacheKeyService,
                               IEventPublisher eventPublisher,
                               IRepository <LocalizedProperty> localizedPropertyRepository,
                               IStaticCacheManager cacheManager,
                               LocalizationSettings localizationSettings)
 {
     _cacheKeyService             = cacheKeyService;
     _eventPublisher              = eventPublisher;
     _localizedPropertyRepository = localizedPropertyRepository;
     _cacheManager         = cacheManager;
     _localizationSettings = localizationSettings;
 }
 public StateProvinceService(ICacheKeyService cacheKeyService,
                             IStaticCacheManager staticCacheManager,
                             IEventPublisher eventPublisher,
                             ILocalizationService localizationService,
                             IRepository <StateProvince> stateProvinceRepository)
 {
     _cacheKeyService         = cacheKeyService;
     _staticCacheManager      = staticCacheManager;
     _eventPublisher          = eventPublisher;
     _localizationService     = localizationService;
     _stateProvinceRepository = stateProvinceRepository;
 }
 public MeasureService(ICacheKeyService cacheKeyService,
                       IEventPublisher eventPublisher,
                       IRepository <MeasureDimension> measureDimensionRepository,
                       IRepository <MeasureWeight> measureWeightRepository,
                       MeasureSettings measureSettings)
 {
     _cacheKeyService            = cacheKeyService;
     _eventPublisher             = eventPublisher;
     _measureDimensionRepository = measureDimensionRepository;
     _measureWeightRepository    = measureWeightRepository;
     _measureSettings            = measureSettings;
 }
Пример #17
0
 public PollModelFactory(ICacheKeyService cacheKeyService,
                         IPollService pollService,
                         IStaticCacheManager staticCacheManager,
                         IStoreContext storeContext,
                         IWorkContext workContext)
 {
     _cacheKeyService    = cacheKeyService;
     _pollService        = pollService;
     _staticCacheManager = staticCacheManager;
     _storeContext       = storeContext;
     _workContext        = workContext;
 }
 public RolesUserServices(IRepository <Auth_Roles> repositoryRoles, IRepository <Auth_Assign> permissionAssign,
                          IEventPublisher eventPublisher, ICacheKeyService cacheKeyService, ILogger logger, IStaticCacheManager staticCache,
                          IWorkContext workContext, IRepository <Auth_UserRoles> repositoryRolesUser)
 {
     _repositoryRoles     = repositoryRoles;
     _permissionAssign    = permissionAssign;
     _eventPublisher      = eventPublisher;
     _cacheKeyService     = cacheKeyService;
     _repositoryRolesUser = repositoryRolesUser;
     _logger      = logger;
     _staticCache = staticCache;
     _workContext = workContext;
 }
        // custom code end

        #endregion

        #region Ctor

        public CategoryController(IAclService aclService,
                                  ICacheKeyService cacheKeyService,
                                  ICategoryModelFactory categoryModelFactory,
                                  ICategoryService categoryService,
                                  ICustomerActivityService customerActivityService,
                                  ICustomerService customerService,
                                  IDiscountService discountService,
                                  IExportManager exportManager,
                                  IImportManager importManager,
                                  ILocalizationService localizationService,
                                  ILocalizedEntityService localizedEntityService,
                                  INotificationService notificationService,
                                  IPermissionService permissionService,
                                  IPictureService pictureService,
                                  IProductService productService,
                                  IStaticCacheManager staticCacheManager,
                                  IStoreMappingService storeMappingService,
                                  IStoreService storeService,
                                  IUrlRecordService urlRecordService,
                                  IWorkContext workContext,
                                  // custom code start
                                  ITirePriceModelFactory tirePriceModelFactory,
                                  ITierpriceService tierpriceService
                                  // custom code end
                                  )
        {
            _aclService              = aclService;
            _cacheKeyService         = cacheKeyService;
            _categoryModelFactory    = categoryModelFactory;
            _categoryService         = categoryService;
            _customerActivityService = customerActivityService;
            _customerService         = customerService;
            _discountService         = discountService;
            _exportManager           = exportManager;
            _importManager           = importManager;
            _localizationService     = localizationService;
            _localizedEntityService  = localizedEntityService;
            _notificationService     = notificationService;
            _permissionService       = permissionService;
            _pictureService          = pictureService;
            _productService          = productService;
            _staticCacheManager      = staticCacheManager;
            _storeMappingService     = storeMappingService;
            _storeService            = storeService;
            _urlRecordService        = urlRecordService;
            _workContext             = workContext;
            // custom code start
            _tirePriceModelFactory = tirePriceModelFactory;
            _tierpriceService      = tierpriceService;
            // custom code end
        }
 public CheckoutAttributeService(ICacheKeyService cacheKeyService,
                                 IStaticCacheManager staticCacheManager,
                                 IEventPublisher eventPublisher,
                                 IRepository <CheckoutAttribute> checkoutAttributeRepository,
                                 IRepository <CheckoutAttributeValue> checkoutAttributeValueRepository,
                                 IStoreMappingService storeMappingService)
 {
     _cacheKeyService                  = cacheKeyService;
     _staticCacheManager               = staticCacheManager;
     _eventPublisher                   = eventPublisher;
     _checkoutAttributeRepository      = checkoutAttributeRepository;
     _checkoutAttributeValueRepository = checkoutAttributeValueRepository;
     _storeMappingService              = storeMappingService;
 }
 public NewsService(CatalogSettings catalogSettings,
                    ICacheKeyService cacheKeyService,
                    IEventPublisher eventPublisher,
                    IRepository <NewsComment> newsCommentRepository,
                    IRepository <NewsItem> newsItemRepository,
                    IRepository <StoreMapping> storeMappingRepository)
 {
     _catalogSettings        = catalogSettings;
     _cacheKeyService        = cacheKeyService;
     _eventPublisher         = eventPublisher;
     _newsCommentRepository  = newsCommentRepository;
     _newsItemRepository     = newsItemRepository;
     _storeMappingRepository = storeMappingRepository;
 }
Пример #22
0
 public LanguageService(ICacheKeyService cacheKeyService,
                        IEventPublisher eventPublisher,
                        IRepository <Language> languageRepository,
                        ISettingService settingService,
                        IStaticCacheManager cacheManager,
                        LocalizationSettings localizationSettings)
 {
     _cacheKeyService      = cacheKeyService;
     _eventPublisher       = eventPublisher;
     _languageRepository   = languageRepository;
     _settingService       = settingService;
     _cacheManager         = cacheManager;
     _localizationSettings = localizationSettings;
 }
Пример #23
0
 public LocalizationService(ICacheKeyService cacheKeyService,
                            IRepository <Language> languageRepository,
                            ILogger logger,
                            IRepository <LocaleStringResource> lsrRepository,
                            ISettingService settingService,
                            IStaticCacheManager staticCacheManager,
                            LocalizationSettings localizationSettings)
 {
     _cacheKeyService    = cacheKeyService;
     _languageRepository = languageRepository;
     _logger             = logger;
     _lsrRepository      = lsrRepository;
     _staticCacheManager = staticCacheManager;
 }
 public CurrencyService(CurrencySettings currencySettings,
                        ICacheKeyService cacheKeyService,
                        IEventPublisher eventPublisher,
                        IExchangeRatePluginManager exchangeRatePluginManager,
                        IRepository <Currency> currencyRepository,
                        IStoreMappingService storeMappingService)
 {
     _cacheKeyService           = cacheKeyService;
     _currencySettings          = currencySettings;
     _eventPublisher            = eventPublisher;
     _exchangeRatePluginManager = exchangeRatePluginManager;
     _currencyRepository        = currencyRepository;
     _storeMappingService       = storeMappingService;
 }
Пример #25
0
 public CustomerActivityService(ICacheKeyService cacheKeyService,
                                IEventPublisher eventPublisher,
                                IRepository <ActivityLog> activityLogRepository,
                                IRepository <ActivityLogType> activityLogTypeRepository,
                                IWebHelper webHelper,
                                IWorkContext workContext)
 {
     _cacheKeyService           = cacheKeyService;
     _eventPublisher            = eventPublisher;
     _activityLogRepository     = activityLogRepository;
     _activityLogTypeRepository = activityLogTypeRepository;
     _webHelper   = webHelper;
     _workContext = workContext;
 }
Пример #26
0
 public WidgetsNivoSliderViewComponent(ICacheKeyService cacheKeyService,
                                       IStoreContext storeContext,
                                       IStaticCacheManager staticCacheManager,
                                       ISettingService settingService,
                                       IPictureService pictureService,
                                       IWebHelper webHelper)
 {
     _cacheKeyService    = cacheKeyService;
     _storeContext       = storeContext;
     _staticCacheManager = staticCacheManager;
     _settingService     = settingService;
     _pictureService     = pictureService;
     _webHelper          = webHelper;
 }
Пример #27
0
 public AclService(CatalogSettings catalogSettings,
                   ICacheKeyService cacheKeyService,
                   ICustomerService customerService,
                   IEventPublisher eventPublisher,
                   IRepository <AclRecord> aclRecordRepository,
                   IWorkContext workContext)
 {
     _catalogSettings     = catalogSettings;
     _cacheKeyService     = cacheKeyService;
     _customerService     = customerService;
     _eventPublisher      = eventPublisher;
     _aclRecordRepository = aclRecordRepository;
     _workContext         = workContext;
 }
Пример #28
0
 public SpecificationAttributeService(ICacheKeyService cacheKeyService,
                                      IEventPublisher eventPublisher,
                                      IRepository <Product> productRepository,
                                      IRepository <ProductSpecificationAttribute> productSpecificationAttributeRepository,
                                      IRepository <SpecificationAttribute> specificationAttributeRepository,
                                      IRepository <SpecificationAttributeOption> specificationAttributeOptionRepository)
 {
     _cacheKeyService   = cacheKeyService;
     _eventPublisher    = eventPublisher;
     _productRepository = productRepository;
     _productSpecificationAttributeRepository = productSpecificationAttributeRepository;
     _specificationAttributeRepository        = specificationAttributeRepository;
     _specificationAttributeOptionRepository  = specificationAttributeOptionRepository;
 }
Пример #29
0
 public ExtendedCategoryService(IRepository <Category> categoryRepository,
                                IRepository <DiscountCategoryMapping> discountCategoryMappingRepository,
                                IRepository <Product> productRepository,
                                IRepository <ProductCategory> productCategoryRepository,
                                ICacheKeyService cacheKeyService,
                                IStaticCacheManager staticCacheManager,
                                ICustomerService customerService) : base(categoryRepository,
                                                                         discountCategoryMappingRepository,
                                                                         productRepository,
                                                                         productCategoryRepository,
                                                                         cacheKeyService,
                                                                         staticCacheManager,
                                                                         customerService)
 {
 }
 public UserActionService(ICacheKeyService cacheKeyService,
                          IEventPublisher eventPublisher,
                          IRepository <ActivityLog> activityLogRepository,
                          IRepository <ActivityLogType> activityLogTypeRepository,
                          IWebHelper webHelper,
                          IWorkContext workContext, ILogger log)
 {
     _cacheKeyService           = cacheKeyService;
     _eventPublisher            = eventPublisher;
     _activityLogRepository     = activityLogRepository;
     _activityLogTypeRepository = activityLogTypeRepository;
     _webHelper   = webHelper;
     _workContext = workContext;
     _log         = log;
 }
Пример #31
0
 public BaseAdminModelFactory(ICacheKeyService cacheKeyService,
                              ICategoryService categoryService,
                              ICategoryTemplateService categoryTemplateService,
                              ICountryService countryService,
                              ICurrencyService currencyService,
                              ICustomerActivityService customerActivityService,
                              ICustomerService customerService,
                              IDateRangeService dateRangeService,
                              IDateTimeHelper dateTimeHelper,
                              IEmailAccountService emailAccountService,
                              ILanguageService languageService,
                              ILocalizationService localizationService,
                              IManufacturerService manufacturerService,
                              IManufacturerTemplateService manufacturerTemplateService,
                              IPluginService pluginService,
                              IProductTemplateService productTemplateService,
                              IShippingService shippingService,
                              IStateProvinceService stateProvinceService,
                              IStaticCacheManager staticCacheManager,
                              IStoreService storeService,
                              ITaxCategoryService taxCategoryService,
                              ITopicTemplateService topicTemplateService,
                              IVendorService vendorService)
 {
     _cacheKeyService             = cacheKeyService;
     _categoryService             = categoryService;
     _categoryTemplateService     = categoryTemplateService;
     _countryService              = countryService;
     _currencyService             = currencyService;
     _customerActivityService     = customerActivityService;
     _customerService             = customerService;
     _dateRangeService            = dateRangeService;
     _dateTimeHelper              = dateTimeHelper;
     _emailAccountService         = emailAccountService;
     _languageService             = languageService;
     _localizationService         = localizationService;
     _manufacturerService         = manufacturerService;
     _manufacturerTemplateService = manufacturerTemplateService;
     _pluginService          = pluginService;
     _productTemplateService = productTemplateService;
     _shippingService        = shippingService;
     _stateProvinceService   = stateProvinceService;
     _staticCacheManager     = staticCacheManager;
     _storeService           = storeService;
     _taxCategoryService     = taxCategoryService;
     _topicTemplateService   = topicTemplateService;
     _vendorService          = vendorService;
 }
 public DefaultOutputCachedDriverResultFactory(IOutputCachedPartsContext outputCachedPartsContext, ICacheService cacheService, ICacheKeyService cacheKeyService) 
 {
     _outputCachedPartsContext = outputCachedPartsContext;
     _cacheService = cacheService;
     _cacheKeyService = cacheKeyService;
 }
 public OutputCachedContentShapeResult(string shapeType, Func<DriverResult> driverResultFactory, ICacheService cacheService, IOutputCachedPartsContext outputCachedPartsContext, ICacheKeyService cacheKeyService, ContentPart part)
     : this(shapeType, driverResultFactory, cacheService, outputCachedPartsContext, cacheKeyService, part, shapeType)
 {}