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