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