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