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