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