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