예제 #1
0
 public CustomerServiceImpl(Func <WorkContext> workContextFactory, ICustomerManagementModuleApi customerApi, IOrderModuleApi orderApi,
                            IQuoteModuleApi quoteApi, ICacheManager <object> cacheManager)
 {
     _workContextFactory = workContextFactory;
     _customerApi        = customerApi;
     _orderApi           = orderApi;
     _quoteApi           = quoteApi;
     _cacheManager       = cacheManager;
 }
 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;
 }
예제 #4
0
 public AccountController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, ICommerceCoreModuleApi commerceCoreApi,
                          ICustomerManagementModuleApi customerApi, IAuthenticationManager authenticationManager, IVirtoCommercePlatformApi platformApi,
                          IOrderModuleApi orderApi, ICartBuilder cartBuilder)
     : base(workContext, urlBuilder)
 {
     _commerceCoreApi       = commerceCoreApi;
     _customerApi           = customerApi;
     _authenticationManager = authenticationManager;
     _platformApi           = platformApi;
     _orderApi    = orderApi;
     _cartBuilder = cartBuilder;
 }
예제 #5
0
 public AccountController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, ICommerceCoreModuleApi commerceCoreApi,
     ICustomerManagementModuleApi customerApi, IAuthenticationManager authenticationManager, IVirtoCommercePlatformApi platformApi,
     IOrderModuleApi orderApi, ICartBuilder cartBuilder)
     : base(workContext, urlBuilder)
 {
     _commerceCoreApi = commerceCoreApi;
     _customerApi = customerApi;
     _authenticationManager = authenticationManager;
     _platformApi = platformApi;
     _orderApi = orderApi;
     _cartBuilder = cartBuilder;
 }
예제 #6
0
 public CartController(WorkContext workContext, IShoppingCartModuleApi cartApi, IOrderModuleApi orderApi, IStorefrontUrlBuilder urlBuilder,
                       ICartBuilder cartBuilder, ICatalogSearchService catalogService, IMarketingModuleApi marketingApi, ICommerceCoreModuleApi commerceApi,
                       ICustomerManagementModuleApi customerApi)
     : base(workContext, urlBuilder)
 {
     _cartBuilder = cartBuilder;
     _catalogService = catalogService;
     _cartApi = cartApi;
     _orderApi = orderApi;
     _marketingApi = marketingApi;
     _commerceApi = commerceApi;
     _customerApi = customerApi;
 }
예제 #7
0
 public CartController(WorkContext workContext, IShoppingCartModuleApi cartApi, IOrderModuleApi orderApi, IStorefrontUrlBuilder urlBuilder,
                       ICartBuilder cartBuilder, ICatalogSearchService catalogService, IMarketingModuleApi marketingApi, ICommerceCoreModuleApi commerceApi,
                       ICustomerManagementModuleApi customerApi)
     : base(workContext, urlBuilder)
 {
     _cartBuilder    = cartBuilder;
     _catalogService = catalogService;
     _cartApi        = cartApi;
     _orderApi       = orderApi;
     _marketingApi   = marketingApi;
     _commerceApi    = commerceApi;
     _customerApi    = customerApi;
 }
예제 #8
0
 public CartController(WorkContext workContext, IOrderModuleApi orderApi, IStorefrontUrlBuilder urlBuilder,
                       ICartBuilder cartBuilder, ICatalogSearchService catalogService, IMarketingModuleApi marketingApi, ICommerceCoreModuleApi commerceApi,
                       ICustomerManagementModuleApi customerApi, ICartValidator cartValidator, IEventPublisher<OrderPlacedEvent> orderPlacedEventPublisher)
     : base(workContext, urlBuilder)
 {
     _cartBuilder = cartBuilder;
     _catalogService = catalogService;
     _orderApi = orderApi;
     _marketingApi = marketingApi;
     _commerceApi = commerceApi;
     _customerApi = customerApi;
     _cartValidator = cartValidator;
     _orderPlacedEventPublisher = orderPlacedEventPublisher;
 }
예제 #9
0
 public CartController(WorkContext workContext, IOrderModuleApi orderApi, IStorefrontUrlBuilder urlBuilder,
                       ICartBuilder cartBuilder, ICatalogSearchService catalogService, IMarketingModuleApi marketingApi, ICommerceCoreModuleApi commerceApi,
                       ICustomerManagementModuleApi customerApi, ICartValidator cartValidator, IEventPublisher <OrderPlacedEvent> orderPlacedEventPublisher)
     : base(workContext, urlBuilder)
 {
     _cartBuilder               = cartBuilder;
     _catalogService            = catalogService;
     _orderApi                  = orderApi;
     _marketingApi              = marketingApi;
     _commerceApi               = commerceApi;
     _customerApi               = customerApi;
     _cartValidator             = cartValidator;
     _orderPlacedEventPublisher = orderPlacedEventPublisher;
 }