private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(PersonServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IPersonService)); }
public PersonServiceClient(EndpointConfiguration endpointConfiguration) : base(PersonServiceClient.GetBindingForEndpoint(endpointConfiguration), PersonServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }