public MarketingController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IMarketingService marketingService,
     IPromotionEvaluator promotionEvaluator, IPricingModuleApi pricingApi)
     : base(workContext, urlBuilder)
 {
     _marketingService = marketingService;
     _pricingApi = pricingApi;
     _promotionEvaluator = promotionEvaluator;
 }
Beispiel #2
0
 public MarketingController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IMarketingService marketingService,
                            IPromotionEvaluator promotionEvaluator, IPricingModuleApi pricingApi)
     : base(workContext, urlBuilder)
 {
     _marketingService   = marketingService;
     _pricingApi         = pricingApi;
     _promotionEvaluator = promotionEvaluator;
 }
 public CatalogSearchServiceImpl(WorkContext workContext, ICatalogModuleApi catalogModuleApi, IPricingModuleApi pricingModuleApi, IInventoryModuleApi inventoryModuleApi, ISearchModuleApi searchApi)
 {
     _workContext = workContext;
     _catalogModuleApi = catalogModuleApi;
     _pricingModuleApi = pricingModuleApi;
     _inventoryModuleApi = inventoryModuleApi;
     _searchApi = searchApi;
 }
 public CatalogSearchServiceImpl(WorkContext workContext, ICatalogModuleApi catalogModuleApi, IPricingModuleApi pricingModuleApi, IInventoryModuleApi inventoryModuleApi, ISearchModuleApi searchApi)
 {
     _workContext        = workContext;
     _catalogModuleApi   = catalogModuleApi;
     _pricingModuleApi   = pricingModuleApi;
     _inventoryModuleApi = inventoryModuleApi;
     _searchApi          = searchApi;
 }
 public WorkContextOwinMiddleware(OwinMiddleware next, UnityContainer container)
     : base(next)
 {
     _storeApi         = container.Resolve <IStoreModuleApi>();
     _platformApi      = container.Resolve <IVirtoCommercePlatformApi>();
     _customerApi      = container.Resolve <ICustomerManagementModuleApi>();
     _cartBuilder      = container.Resolve <ICartBuilder>();
     _cmsApi           = container.Resolve <ICMSContentModuleApi>();
     _pricingModuleApi = container.Resolve <IPricingModuleApi>();
     _cacheManager     = container.Resolve <ICacheManager <object> >();
     _container        = container;
 }
 public WorkContextOwinMiddleware(OwinMiddleware next, UnityContainer container)
     : base(next)
 {
     _storeApi = container.Resolve<IStoreModuleApi>();
     _platformApi = container.Resolve<IVirtoCommercePlatformApi>();
     _customerApi = container.Resolve<ICustomerManagementModuleApi>();
     _cartBuilder = container.Resolve<ICartBuilder>();
     _cmsApi = container.Resolve<ICMSContentModuleApi>();
     _pricingModuleApi = container.Resolve<IPricingModuleApi>();
     _cacheManager = container.Resolve<ICacheManager<object>>();
     _container = container;
 }
 public WorkContextOwinMiddleware(OwinMiddleware next, UnityContainer container)
     : base(next)
 {
     //Be AWARE! WorkContextOwinMiddleware crated once in first application start
     //and  there can not be resolved and stored in fields services using WorkContext as dependency (WorkCOntext has a per request lifetime)
     _storeApi             = container.Resolve <IStoreModuleApi>();
     _quoteRequestBuilder  = container.Resolve <IQuoteRequestBuilder>();
     _pricingModuleApi     = container.Resolve <IPricingModuleApi>();
     _commerceApi          = container.Resolve <ICommerceCoreModuleApi>();
     _cacheManager         = container.Resolve <ILocalCacheManager>();
     _staticContentService = container.Resolve <IStaticContentService>();
     _container            = container;
 }
 public WorkContextOwinMiddleware(OwinMiddleware next, UnityContainer container)
     : base(next)
 {
     //Be AWARE! WorkContextOwinMiddleware crated once in first application start
     //and  there can not be resolved and stored in fields services using WorkContext as dependency (WorkCOntext has a per request lifetime)
     _storeApi = container.Resolve<IStoreModuleApi>();
     _quoteRequestBuilder = container.Resolve<IQuoteRequestBuilder>();
     _pricingModuleApi = container.Resolve<IPricingModuleApi>();
     _commerceApi = container.Resolve<ICommerceCoreModuleApi>();
     _cacheManager = container.Resolve<ILocalCacheManager>();
     _staticContentService = container.Resolve<IStaticContentService>();
     _container = container;
 }
Beispiel #9
0
 public PricingServiceImpl(Func <WorkContext> workContextFactory, IPricingModuleApi pricingApi)
 {
     _pricingApi         = pricingApi;
     _workContextFactory = workContextFactory;
 }
 public PricingServiceImpl(Func<WorkContext> workContextFactory, IPricingModuleApi pricingApi)
 {
     _pricingApi = pricingApi;
     _workContextFactory = workContextFactory;
 }