private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(CategoriesClient.GetEndpointAddress(EndpointConfiguration.CategoryService));
 }
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(CategoriesClient.GetBindingForEndpoint(EndpointConfiguration.CategoryService));
 }
 public CategoriesClient(EndpointConfiguration endpointConfiguration) :
     base(CategoriesClient.GetBindingForEndpoint(endpointConfiguration), CategoriesClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
 public CategoriesClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(CategoriesClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
 public CategoriesClient() :
     base(CategoriesClient.GetDefaultBinding(), CategoriesClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.CategoryService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }