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