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