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 AccountController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IVirtoCommerceCoreApi commerceCoreApi, IAuthenticationManager authenticationManager, IVirtoCommercePlatformApi platformApi, ICustomerService customerService, IVirtoCommerceOrdersApi orderApi, IEventPublisher <UserLoginEvent> userLoginEventPublisher) : base(workContext, urlBuilder) { _commerceCoreApi = commerceCoreApi; _customerService = customerService; _authenticationManager = authenticationManager; _platformApi = platformApi; _orderApi = orderApi; _userLoginEventPublisher = userLoginEventPublisher; }
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; }
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 AccountController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, ICommerceCoreModuleApi commerceCoreApi, IAuthenticationManager authenticationManager, IVirtoCommercePlatformApi platformApi, ICustomerService customerService, IOrderModuleApi orderApi, IEventPublisher<UserLoginEvent> userLoginEventPublisher) : base(workContext, urlBuilder) { _commerceCoreApi = commerceCoreApi; _customerService = customerService; _authenticationManager = authenticationManager; _platformApi = platformApi; _orderApi = orderApi; _userLoginEventPublisher = userLoginEventPublisher; }
public CommonController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IVirtoCommerceStoreApi storeModuleApi, IVirtoCommercePlatformApi platformApi, ILocalCacheManager cacheManager) : base(workContext, urlBuilder) { _cacheManager = cacheManager; _storeModuleApi = storeModuleApi; _platformApi = platformApi; _countriesWithoutRegions = workContext.AllCountries .Select(c => new Country { Name = c.Name, Code2 = c.Code2, Code3 = c.Code3, RegionType = c.RegionType }) .ToArray(); }
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>(); _platformApi = container.Resolve <IVirtoCommercePlatformApi>(); _quoteRequestBuilder = container.Resolve <IQuoteRequestBuilder>(); _cmsApi = container.Resolve <ICMSContentModuleApi>(); _pricingModuleApi = container.Resolve <IPricingModuleApi>(); _commerceApi = container.Resolve <ICommerceCoreModuleApi>(); _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>(); _platformApi = container.Resolve<IVirtoCommercePlatformApi>(); _quoteRequestBuilder = container.Resolve<IQuoteRequestBuilder>(); _cmsApi = container.Resolve<ICMSContentModuleApi>(); _pricingModuleApi = container.Resolve<IPricingModuleApi>(); _commerceApi = container.Resolve<ICommerceCoreModuleApi>(); _cacheManager = container.Resolve<ICacheManager<object>>(); _catalogModuleApi = container.Resolve<ICatalogModuleApi>(); _searchApi = container.Resolve<ISearchModuleApi>(); _staticContentService = container.Resolve<IStaticContentService>(); _container = container; }