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