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