internal override async Task <List <Location> > ResolveAddressInternalAsync(string address, CancellationToken token, bool lastAttempt) { var parameters = new ResolveAddressParameters(address, false); return(GetAddressLocations(await client.ObjectEngine.GetObjectAsync <HereOuterResponse>( parameters, m => Task.FromResult(ResponseParser.ResolveParser(m)), token).ConfigureAwait(false) )); }
internal override List <Location> ResolveAddressInternal(string address, CancellationToken token, bool lastAttempt) { var parameters = new ResolveAddressParameters(address, false); return(GetAddressLocations(client.ObjectEngine.GetObject <HereOuterResponse>( parameters, ResponseParser.ResolveParser, token ))); }
internal async virtual Task <List <Location> > ResolveAddressInternalAsync(string address, CancellationToken token, bool lastAttempt) { var parameters = new ResolveAddressParameters(address, true); var response = await client.ObjectEngine.GetObjectAsync <GoogleGeoResult>(parameters, m => Task.FromResult(ResponseParser.ResolveParser(m)), token).ConfigureAwait(false); if (lastAttempt) { HandleLastAttempt(response, address); } return(response.Results.Cast <Location>().ToList()); }
internal virtual List <Location> ResolveAddressInternal(string address, CancellationToken token, bool lastAttempt) { var parameters = new ResolveAddressParameters(address, true); var response = client.ObjectEngine.GetObject <GoogleGeoResult>(parameters, ResponseParser.ResolveParser, token); if (lastAttempt) { HandleLastAttempt(response, address); } return(response.Results.Cast <Location>().ToList()); }