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