protected PriceServiceClient GetClientStandard() { var address = new EndpointAddress(serviceUrl); var binding = new BasicHttpBinding(); var client = new PriceServiceClient(binding, address); return(client); }
public RegisterInvoice() { InitializeComponent(); _priceServiceClient = new PriceServiceClient(); _userController = UserController.Instance; Title += " | Uživatel: " + _userController.LoggedUser.UserName; }
protected PriceServiceClient GetClientWithDefaultLogging() { var address = new EndpointAddress(serviceUrl); string useCustomHandler = Boolean.FalseString; CustomBinding customBinding = new CustomBinding(); customBinding.Elements.Add(new LoggingBindingElement(logPathClient, useCustomHandler)); customBinding.Elements.Add(new HttpTransportBindingElement()); var client = new PriceServiceClient(customBinding, address); return(client); }
protected PriceServiceClient GetClientWithDefaultLogging() { var address = new EndpointAddress(serviceUrl); const bool saveOriginalBinaryBody = false; const bool useCustomHandler = false; MessageVersion messageVersion = MessageVersion.Soap11; CustomBinding customBinding = new CustomBinding(); customBinding.Elements.Add(new LoggingBindingElement(logPathClient, saveOriginalBinaryBody, useCustomHandler, messageVersion)); customBinding.Elements.Add(new HttpTransportBindingElement()); var client = new PriceServiceClient(customBinding, address); return(client); }
public OrderService(OrderContext orderContext , UserContext userContext , BucketRepository bucketRepository , PriceServiceClient pricingClient , WarehouseServiceClient warehouseServiceClient , RabbitMQMessageSender mqSender , MetricReporter metricReporter , IDistributedCache distributedCache) { _orderContext = orderContext; _userContext = userContext; _pricingClient = pricingClient; _warehouseServiceClient = warehouseServiceClient; _bucketRepository = bucketRepository; _mqSender = mqSender; _metricReporter = metricReporter; _distributedCache = distributedCache; }