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