Example #1
0
        public async Task <string[]> GetSimilaresAsync(string verb)
        {
            SpellerServiceClient client = new SpellerServiceClient(SpellerServiceClient.EndpointConfiguration.BasicHttpsBinding_ISpellerService);

            string[] similitudes = await client.SimilaresAsync(verb);

            await client.CloseAsync();

            return(similitudes);
        }
Example #2
0
        public async Task <string[]> GetSugerenciasAsync(string verb)
        {
            SpellerServiceClient client = new SpellerServiceClient(SpellerServiceClient.EndpointConfiguration.BasicHttpsBinding_ISpellerService);

            string[] sugerencias = await client.SugerenciasAsync(verb, true);

            await client.CloseAsync();

            return(sugerencias);
        }
Example #3
0
 public SpellerServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(SpellerServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Example #4
0
 public SpellerServiceClient(EndpointConfiguration endpointConfiguration) :
     base(SpellerServiceClient.GetBindingForEndpoint(endpointConfiguration), SpellerServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }