private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(WebShopServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IWebShopService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(WebShopServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IWebShopService)); }
public WebShopServiceClient(EndpointConfiguration endpointConfiguration) : base(WebShopServiceClient.GetBindingForEndpoint(endpointConfiguration), WebShopServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public WebShopServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(WebShopServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public WebShopServiceClient() : base(WebShopServiceClient.GetDefaultBinding(), WebShopServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IWebShopService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }