public ApiCommonController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IStoreModuleApi storeModuleApi) : base(workContext, urlBuilder) { _storeModuleApi = storeModuleApi; _countriesWithoutRegions = workContext.AllCountries .Select(c => new Country { Name = c.Name, Code2 = c.Code2, Code3 = c.Code3, RegionType = c.RegionType }) .ToArray(); }
public CustomerServiceImpl(Func <WorkContext> workContextFactory, ICustomerManagementModuleApi customerApi, IOrderModuleApi orderApi, IQuoteModuleApi quoteApi, IStoreModuleApi storeApi, ICacheManager <object> cacheManager) { _workContextFactory = workContextFactory; _customerApi = customerApi; _orderApi = orderApi; _quoteApi = quoteApi; _storeApi = storeApi; _cacheManager = cacheManager; }
public CommonController(WorkContext workContext, IStorefrontUrlBuilder urlBuilder, IStoreModuleApi storeModuleApi) : base(workContext, urlBuilder) { _storeModuleApi = storeModuleApi; _countriesWithoutRegions = workContext.AllCountries .Select(c => new Country { Name = c.Name, Code2 = c.Code2, Code3 = c.Code3 }) .ToArray(); }
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; }