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