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