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