public AdjustInventoryActivity(ICatalogRepository catalogRepository, IInventoryRepository inventoryRepository, ICustomerSessionService customerService, ICacheRepository cacheRepository)
 {
     _catalogRepository = catalogRepository;
     _inventoryRepository = inventoryRepository;
     _cacheRepository = cacheRepository;
     _customerSessionService = customerService;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicContentClient" /> class.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public DynamicContentClient(IDynamicContentService service, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _service         = service;
     _isEnabled       = DynamicContentConfiguration.Instance.Cache.IsEnabled;
 }
Example #3
0
 /// <summary>
 /// Initializes the <see cref="StoreClient"/> class.
 /// </summary>
 public StoreClient(IStoreRepository storeRepository, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _storeRepository = storeRepository;
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _isEnabled       = StoreConfiguration.Instance.Cache.IsEnabled;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="DynamicContentClient" /> class.
        /// </summary>
        /// <param name="contentRepository">The content repository.</param>
        /// <param name="service">The service.</param>
        /// <param name="customerSession">The customer session.</param>
        /// <param name="cacheRepository">The cache repository.</param>
        public DynamicContentClient(IDynamicContentRepository contentRepository, IDynamicContentService service, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
        {
		    _cacheRepository = cacheRepository;
            _customerSession = customerSession;
            _service = service;
            _isEnabled = DynamicContentConfiguration.Instance.Cache.IsEnabled;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DisplayTemplateClient" /> class.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public DisplayTemplateClient(IDisplayTemplatesService service, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _service         = service;
     _isEnabled       = AppConfigConfiguration.Instance.Cache.IsEnabled;
 }
Example #6
0
 public AdjustInventoryActivity(ICatalogRepository catalogRepository, IInventoryRepository inventoryRepository, ICustomerSessionService customerService, ICacheRepository cacheRepository)
 {
     _catalogRepository      = catalogRepository;
     _inventoryRepository    = inventoryRepository;
     _cacheRepository        = cacheRepository;
     _customerSessionService = customerService;
 }
Example #7
0
 /// <summary>
 /// Initializes the <see cref="StoreClient"/> class.
 /// </summary>
 public StoreClient(IStoreRepository storeRepository, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _storeRepository = storeRepository;
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _isEnabled = StoreConfiguration.Instance.Cache.IsEnabled;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DisplayTemplateClient" /> class.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public DisplayTemplateClient(IDisplayTemplatesService service, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _service = service;
     _isEnabled = AppConfigConfiguration.Instance.Cache.IsEnabled;
 }
 public UserClient(ISecurityRepository securityRepository, ICustomerRepository customerRepository, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _securityRepository = securityRepository;
     _customerRepository = customerRepository;
     _cacheRepository    = cacheRepository;
     _customerSession    = customerSession;
     _isEnabled          = CustomerConfiguration.Instance.Cache.IsEnabled;
 }
        public CreateOrderActivity(IOrderRepository orderRepository,
            ICustomerSessionService customerService, 
            SequencesClient sequencesClient)
		{
            _orderRepository = orderRepository;
			_customerSessionService = customerService;
            _sequencesClient = sequencesClient;
		}
Example #11
0
 public UserClient(ISecurityRepository securityRepository, ICustomerRepository customerRepository, ICustomerSessionService customerSession, ICacheRepository cacheRepository)
 {
     _securityRepository = securityRepository;
     _customerRepository = customerRepository;
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _isEnabled = CustomerConfiguration.Instance.Cache.IsEnabled;
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PriceListClient" /> class.
 /// </summary>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public PriceListClient(IPricelistRepository priceListRepository, ICustomerSessionService customerSession, IPriceListAssignmentEvaluator priceListEvaluator, IPriceListAssignmentEvaluationContext priceListEvalContext, ICacheRepository cacheRepository)
 {
     _cacheRepository      = cacheRepository;
     _priceListRepository  = priceListRepository;
     _customerSession      = customerSession;
     _priceListEvalContext = priceListEvalContext;
     _priceListEvaluator   = priceListEvaluator;
     _isEnabled            = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PriceListClient" /> class.
 /// </summary>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public PriceListClient(IPricelistRepository priceListRepository, ICustomerSessionService customerSession, IPriceListAssignmentEvaluator priceListEvaluator, IPriceListAssignmentEvaluationContext priceListEvalContext, ICacheRepository cacheRepository)
 {
     _cacheRepository = cacheRepository;
     _priceListRepository = priceListRepository;
     _customerSession = customerSession;
     _priceListEvalContext = priceListEvalContext;
     _priceListEvaluator = priceListEvaluator;
     _isEnabled = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CacheService"/> class.
 /// </summary>
 /// <param name="cacheRepository">The cache repository.</param>
 /// <param name="outputCacheManager">The output cache manager.</param>
 /// <param name="storeClient"></param>
 /// <param name="sessionService"></param>
 public CacheService(ICacheRepository cacheRepository, 
     IReadWriteOutputCacheManager outputCacheManager, 
     ICustomerSessionService sessionService,
     StoreClient storeClient):this()
 {
     _cacheRepository = cacheRepository;
     _outputCacheManager = outputCacheManager;
     _storeClient = storeClient;
     _sessionService = sessionService;
 }
	    /// <summary>
	    ///     Initializes the <see cref="PromotionClient" /> class.
	    /// </summary>
	    /// <param name="marketingRepository">The marketing repository.</param>
	    /// <param name="customerSession">The customer session.</param>
	    /// <param name="evaluator"></param>
	    /// <param name="cacheRepository">The cache repository.</param>
	    public PromotionClient(IMarketingRepository marketingRepository, 
            ICustomerSessionService customerSession,
            IPromotionEvaluator evaluator, 
            ICacheRepository cacheRepository)
		{
			_marketingRepository = marketingRepository;
			_cacheRepository = cacheRepository;
			_customerSession = customerSession;
	        _evaluator = evaluator;
		}
 /// <summary>
 ///     Initializes the <see cref="PromotionClient" /> class.
 /// </summary>
 /// <param name="marketingRepository">The marketing repository.</param>
 /// <param name="customerSession">The customer session.</param>
 /// <param name="evaluator"></param>
 /// <param name="cacheRepository">The cache repository.</param>
 public PromotionClient(IMarketingRepository marketingRepository,
                        ICustomerSessionService customerSession,
                        IPromotionEvaluator evaluator,
                        ICacheRepository cacheRepository)
 {
     _marketingRepository = marketingRepository;
     _cacheRepository     = cacheRepository;
     _customerSession     = customerSession;
     _evaluator           = evaluator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CacheService"/> class.
 /// </summary>
 /// <param name="cacheRepository">The cache repository.</param>
 /// <param name="outputCacheManager">The output cache manager.</param>
 /// <param name="storeClient"></param>
 /// <param name="sessionService"></param>
 public CacheService(ICacheRepository cacheRepository,
                     IReadWriteOutputCacheManager outputCacheManager,
                     ICustomerSessionService sessionService,
                     StoreClient storeClient) : this()
 {
     _cacheRepository    = cacheRepository;
     _outputCacheManager = outputCacheManager;
     _storeClient        = storeClient;
     _sessionService     = sessionService;
 }
 public CatalogClient(ICatalogRepository catalogRepository,
     ICatalogService catalogService,
     ICustomerSessionService customerSession,
     ICacheRepository cacheRepository,
     IInventoryRepository inventoryRepository,
     ICatalogOutlineBuilder catalogOutlineBuilder = null,
     ISearchConnection searchConnection = null)
 {
     _catalogService = catalogService;
     _catalogRepository = catalogRepository;
     _cacheRepository = cacheRepository;
     _customerSession = customerSession;
     _inventoryRepository = inventoryRepository;
     _searchConnection = searchConnection;
     _catalogOutlineBuilder = catalogOutlineBuilder;
     _isEnabled = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
Example #19
0
 public CatalogClient(ICatalogRepository catalogRepository,
                      ICatalogService catalogService,
                      ICustomerSessionService customerSession,
                      ICacheRepository cacheRepository,
                      IInventoryRepository inventoryRepository,
                      ICatalogOutlineBuilder catalogOutlineBuilder = null,
                      ISearchConnection searchConnection           = null)
 {
     _catalogService        = catalogService;
     _catalogRepository     = catalogRepository;
     _cacheRepository       = cacheRepository;
     _customerSession       = customerSession;
     _inventoryRepository   = inventoryRepository;
     _searchConnection      = searchConnection;
     _catalogOutlineBuilder = catalogOutlineBuilder;
     _isEnabled             = CatalogConfiguration.Instance.Cache.IsEnabled;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ValidateLineItemsActivity"/> class.
 /// </summary>
 /// <param name="inventoryRepository">The inventory repository.</param>
 /// <param name="catalogRepository">The catalog repository.</param>
 /// <param name="storeRepository">The store repository.</param>
 /// <param name="customerService">The customer service.</param>
 /// <param name="priceListRepository">The price list repository.</param>
 /// <param name="currencyService">The currency service.</param>
 /// <param name="priceListEvaluator">The price list evaluator.</param>
 /// <param name="priceListEvalContext">The price list eval context.</param>
 /// <param name="cacheRepository">The cache repository.</param>
 public ValidateLineItemsActivity(IInventoryRepository inventoryRepository,
                                  ICatalogRepository catalogRepository,
                                  IStoreRepository storeRepository,
                                  ICustomerSessionService customerService,
                                  IPricelistRepository priceListRepository,
                                  ICurrencyService currencyService,
                                  IPriceListAssignmentEvaluator priceListEvaluator,
                                  IPriceListAssignmentEvaluationContext priceListEvalContext,
                                  ICacheRepository cacheRepository)
 {
     _inventoryRepository    = inventoryRepository;
     _catalogRepository      = catalogRepository;
     _storeRepository        = storeRepository;
     _customerSessionService = customerService;
     _pricelistRepository    = priceListRepository;
     _currencyService        = currencyService;
     _priceListEvalContext   = priceListEvalContext;
     _cacheRepository        = cacheRepository;
     _priceListEvaluator     = priceListEvaluator;
 }
        public RecordPromotionUsageActivity(ICustomerSessionService customerService, IMarketingRepository marketingRepository)
		{
			_marketingRepository = marketingRepository;
			_customerSessionService = customerService;
		}
 public RecordPromotionUsageActivity(ICustomerSessionService customerService, IMarketingRepository marketingRepository)
 {
     _marketingRepository    = marketingRepository;
     _customerSessionService = customerService;
 }
 public StoreSearchFilterService(StoreClient client, ICustomerSessionService customerSession, CatalogClient catalogClient)
 {
     _storeClient     = client;
     _customerSession = customerSession;
     _catalogClient   = catalogClient;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidateLineItemsActivity"/> class.
        /// </summary>
        /// <param name="inventoryRepository">The inventory repository.</param>
        /// <param name="catalogRepository">The catalog repository.</param>
        /// <param name="storeRepository">The store repository.</param>
        /// <param name="customerService">The customer service.</param>
        /// <param name="priceListRepository">The price list repository.</param>
        /// <param name="currencyService">The currency service.</param>
        /// <param name="priceListEvaluator">The price list evaluator.</param>
        /// <param name="priceListEvalContext">The price list eval context.</param>
        /// <param name="cacheRepository">The cache repository.</param>
        public ValidateLineItemsActivity(IInventoryRepository inventoryRepository, 
			ICatalogRepository catalogRepository, 
            IStoreRepository storeRepository, 
			ICustomerSessionService customerService, 
			IPricelistRepository priceListRepository,
            ICurrencyService currencyService, 
			IPriceListAssignmentEvaluator priceListEvaluator, 
			IPriceListAssignmentEvaluationContext priceListEvalContext,
			ICacheRepository cacheRepository)
        {
            _inventoryRepository = inventoryRepository;
            _catalogRepository = catalogRepository;
            _storeRepository = storeRepository;
            _customerSessionService = customerService;
            _pricelistRepository = priceListRepository;
            _currencyService = currencyService;
            _priceListEvalContext = priceListEvalContext;
	        _cacheRepository = cacheRepository;
	        _priceListEvaluator = priceListEvaluator;
        }
 public StoreSearchFilterService(StoreClient client, ICustomerSessionService customerSession, CatalogClient catalogClient)
 {
     _storeClient = client;
     _customerSession = customerSession;
     _catalogClient = catalogClient;
 }