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