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