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); }
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); }