public BasketController(IProductCatalogueService productCatalogueService, IBasketService basketService, ICookieStorageService cookieStorageService) : base(cookieStorageService, productCatalogueService) { _basketService = basketService; _cookieStorageService = cookieStorageService; }
public ProductController( IProductCatalogueService productCatalogueService , IPricingService pricingService ) { _productCatalogueService = productCatalogueService; _pricingService = pricingService; }
/// <summary> /// Initializes a new instance of the <see cref="ProductStoreRequestService"/> class with specified <see cref="IProductCatalogueContext"/>. /// </summary> /// <param name="context">A <see cref="IProductStoreContext"/>.</param> /// <param name="hiveSectionService">A <see cref="IHiveSectionService"/>.</param> /// <param name="productService">A <see cref="IProductCatalogueService"/>.</param> /// <param name="productStoreService">A <see cref="IProductStoreService"/>.</param> /// <param name="userContext">A <see cref="IUserContext"/>.</param> public ProductStoreRequestService(IProductStoreContext context, IHiveSectionService hiveSectionService, IProductCatalogueService productService, IProductStoreService productStoreService, IUserContext userContext) { _context = context ?? throw new ArgumentNullException(nameof(context)); _hiveSectionService = hiveSectionService ?? throw new ArgumentNullException(nameof(hiveSectionService)); _productService = productService ?? throw new ArgumentNullException(nameof(productService)); _productStoreService = productStoreService ?? throw new ArgumentNullException(nameof(productStoreService)); _userContext = userContext ?? throw new ArgumentNullException(nameof(userContext)); }
public ProductController( IProductCatalogueService productCatalogueService ,IPricingService pricingService ) { _productCatalogueService = productCatalogueService; _pricingService = pricingService; }
public CachedProductCatalogueService(ICacheStorage cachStorage, IProductCatalogueService realProductCatalogueService, IProductTitleRepository productTitleRepository, IProductRepository productRepository) { _cachStorage = cachStorage; _realProductCatalogueService = realProductCatalogueService; _productTitleRepository = productTitleRepository; _productRepository = productRepository; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, IProductCatalogueService productCatalogue) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } productCatalogue.LoadProductsFromFile(); // app.UseHttpsRedirection(); app.UseMvc(); }
public ProductCategoriesController(IProductCategoryService categoryService, IProductCatalogueService productCatalogueService) { _categoryService = categoryService ?? throw new ArgumentNullException(nameof(categoryService)); _productCatalogueService = productCatalogueService ?? throw new ArgumentNullException(nameof(productCatalogueService)); }
public ProductCatalogController(IProductCatalogueService productCatalogService) : base(productCatalogService) { this._productCatalogService = productCatalogService; }
public ProductsController(IProductCatalogueService productService) { _productService = productService ?? throw new ArgumentNullException(nameof(productService)); }
public ProductCatalogueBaseController(ICookieStorageService cookieStorageService, IProductCatalogueService productCatalogueService) : base(cookieStorageService) { _productCatalogueService = productCatalogueService; }
public ProductCatalogueController(IProductCatalogueService service) { _service = service; }
public ProductController() { //TODO: Apply partitioning of data, since this is currently supporting only 1 partition. this._productCatalogService = ServiceProxy.Create <IProductCatalogueService>(new Uri("fabric:/MyEcommerceApp/MyEcommerceApp.ProductCatalogue"), new ServicePartitionKey(0)); }
public HomeController(IProductCatalogueService productCatalogService) : base(productCatalogService) { _productCatalogService = productCatalogService; }