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