Пример #1
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(CustomerPortTypeClient.GetEndpointAddress(EndpointConfiguration.CustomerPort));
 }
Пример #2
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(CustomerPortTypeClient.GetBindingForEndpoint(EndpointConfiguration.CustomerPort));
 }
Пример #3
0
 public CustomerPortTypeClient(EndpointConfiguration endpointConfiguration) :
     base(CustomerPortTypeClient.GetBindingForEndpoint(endpointConfiguration), CustomerPortTypeClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #4
0
 public CustomerPortTypeClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(CustomerPortTypeClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #5
0
 public CustomerPortTypeClient() :
     base(CustomerPortTypeClient.GetDefaultBinding(), CustomerPortTypeClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.CustomerPort.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }