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