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); }
public SpellerServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(SpellerServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public SpellerServiceClient(EndpointConfiguration endpointConfiguration) : base(SpellerServiceClient.GetBindingForEndpoint(endpointConfiguration), SpellerServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }