public ProductService( IProductClient productClient, IResilienceService resilienceService) { this.productClient = productClient; this.resilienceService = resilienceService; }
public ShopperApiClient(ApiSettings apiSettings) { var factory = new ShopperHttpClientFactory(apiSettings); Baskets = new BasketClient(factory); Products = new ProductClient(factory); }
public ProductClientController(IProductClient productClient, IRatingClient ratingClient, ICommentClient commentClient, IMemoryCache memoryCache) { _productClient = productClient; _ratingClient = ratingClient; _commentClient = commentClient; _memoryCache = memoryCache; }
public CartController( ICartClient cartClient, IProductClient productClient) { this._cartClient = cartClient; this._productClient = productClient; }
public ProductClientSoap(string uri) { var binding = new BasicHttpBinding(); var endpoint = new EndpointAddress(new Uri(uri)); var chanelFactory = new ChannelFactory <IProductClient>(binding, endpoint); _productClient = chanelFactory.CreateChannel(); }
public ProductClient(IConfiguration configuration) { var httpClient = new HttpClient() { BaseAddress = new Uri(configuration.GetValue <string>("ProductService")) }; _productClient = RestClient.For <IProductClient>(httpClient); }
public ProductClient(IOptions <ServicesUrl> servicesUrl, IDiscoveryClient discoveryClient) { _servicesUrl = servicesUrl.Value; var handler = new DiscoveryHttpClientHandler(discoveryClient); handler.ServerCertificateCustomValidationCallback = delegate { return(true); }; var httpClient = new HttpClient(handler, false) { BaseAddress = new Uri(_servicesUrl.ProductApiUrl) }; client = RestClient.For <IProductClient>(httpClient); }
//private readonly ISeckillsClient seckillsClient; //private readonly IMiddleService middleService; //private readonly IServiceDiscovery serviceDiscovery; //private readonly ILoadBalance loadBalance; //private readonly IDynamicMiddlewareService dynamicMiddleService; //private readonly OrderServiceImpl orderService; public SeckillController(ISeckillTimeClient seckillTimeClient, IProductClient productClient) // ISeckillsClient seckillsClient, //IMiddleService middleService, //IServiceDiscovery serviceDiscovery, //ILoadBalance loadBalance, //IDynamicMiddlewareService dynamicMiddleService, //OrderServiceImpl orderService) { this.seckillTimeClient = seckillTimeClient; this.productClient = productClient; //this.seckillsClient = seckillsClient; //this.middleService = middleService; //this.serviceDiscovery = serviceDiscovery; //this.loadBalance = loadBalance; //this.dynamicMiddleService = dynamicMiddleService; //this.orderService = orderService; }
public ApiClient(HttpClient httpClient, IConfiguration configuration) { var apiConfigurations = new ApiConfigurations(); new ConfigureFromConfigurationOptions <ApiConfigurations>(configuration.GetSection("ApiConfigurations")) .Configure(apiConfigurations); _apiEndpoint = apiConfigurations.BaseURL; if (!_apiEndpoint.EndsWith("/")) { _apiEndpoint += "/"; } httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiConfigurations.Token); BasketClient = new BasketClient(_apiEndpoint, httpClient); ProductGroupClient = new ProductGroupClient(_apiEndpoint, httpClient); ProductClient = new ProductClient(_apiEndpoint, httpClient); LoginClient = new LoginClient(_apiEndpoint, httpClient); }
public HomeController(ILogger <HomeController> logger, IProductClient productClient, IAccountClient accountClient) { this._accountClient = accountClient; _logger = logger; _productClient = productClient; }
public ProductAgent(IProductClient productClient) { this.productClient = productClient; }
public void Init() { _stripe = Substitute.For <IStripeClient>(); _client = new ProductClient(_stripe); }
public CartController(ICartClient cartClient, IProductClient productClient, IOrderClient orderClient) { mCartClient = cartClient; mProductClient = productClient; mOrderClient = orderClient; }
public ProductController(IProductClient productClient) { this.productClient = productClient; }
public OrderController(IOrderRepository orderRepository, IProductClient productClient) { _orderRepository = orderRepository; _productClient = productClient; }
public ProductController() { var apiClient = new ApiClient(HttpClientInstance.Instance); productClient = new ProductClient(apiClient); }
public ProductController(IProductClient productClient) { this.productClient = productClient; }
public ProductController() { var apiClient = new ApiClient(HttpClientInstance.Instance); productClient = new ProductClient(apiClient); }
public HomeController(IProductClient client) { this._productClient = client; }
public ProductController(IProductClient productApiClient, IConfiguration configuration) { _productApiClient = productApiClient; _configuration = configuration; }
public OrdersController(IOrderClient orderClient, IProductClient productClient) { mOrderClient = orderClient; mProductClient = productClient; }
public void Init() { _stripe = Substitute.For<IStripeClient>(); _client = new ProductClient(_stripe); }
public HomeController(ILogger <HomeController> logger, IProductClient productClient) { _logger = logger; _productClient = productClient; }
public ProductsController(IProductClient productClient) { mProductClient = productClient; }
public ManufacturerController(IProductClient productClient, IManufacturerClient manufacturerClient) { _manufacturerClient = manufacturerClient; _productClient = productClient; }
public HomeController(IProductClient productClient) { _productClient = productClient; }
public ProductSortCommandHandler(IProductClient productSeviceProxy) { this.productSeviceProxy = productSeviceProxy; }
public ProductController(IProductClient productClient, IMapper mapper) { _productClient = productClient; _mapper = mapper; }
public QuickViewViewComponent(IProductClient productClient) { _productClient = productClient; }
public ProductController(IProductClient productClient, IProductImageClient productImageClient) { this.productClient = productClient; this.productImageClient = productImageClient; }
public ProductsService(IProductClient productClient) { _productClient = productClient ?? throw new ArgumentNullException(nameof(productClient)); }
public SeckillDetailController(ISeckillsClient seckillsClient, IProductClient productClient) { this.seckillsClient = seckillsClient; this.productClient = productClient; }
public ProductMenuViewComponent(IProductClient productClient) { _productClient = productClient; }