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