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