public CartService(ICartModule cartModule, IWorkContextAccessor workContextAccessor, IMemoryCache memoryCache, UserManager <User> userManager)
 {
     _cartApi             = cartModule;
     _memoryCache         = memoryCache;
     _workContextAccessor = workContextAccessor;
     _userManager         = userManager;
 }
Beispiel #2
0
 public CartBuilder(IWorkContextAccessor workContextAccessor, ICartModule cartApi, ICatalogService catalogSearchService,
                    IMemoryCache memoryCache, IPromotionEvaluator promotionEvaluator, ITaxEvaluator taxEvaluator, ISubscriptionService subscriptionService)
 {
     _cartApi             = cartApi;
     _catalogService      = catalogSearchService;
     _memoryCache         = memoryCache;
     _workContextAccessor = workContextAccessor;
     _promotionEvaluator  = promotionEvaluator;
     _taxEvaluator        = taxEvaluator;
     _subscriptionService = subscriptionService;
 }
 public DemoCartService(
     ICartModule cartModule,
     IWorkContextAccessor workContextAccessor,
     IStorefrontMemoryCache memoryCache,
     UserManager<User> userManager,
     ICatalogService catalogService)
     : base(cartModule, workContextAccessor, memoryCache, userManager)
 {
     _userManager = userManager;
     _workContextAccessor = workContextAccessor;
     _cartApi = cartModule;
     _memoryCache = memoryCache;
     _catalogService = catalogService;
 }
Beispiel #4
0
 public SecurityEventsHandler(ICartBuilder cartBuilder, ICartModule cartApi)
 {
     _cartBuilder = cartBuilder;
     _cartApi     = cartApi;
 }
 public CartBuilderFactory(ICartModule cartModule)
 {
     _cartModule = cartModule;
 }