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