internal ListGeoLocationsResponse ListGeoLocations(ListGeoLocationsRequest request) { var marshaller = new ListGeoLocationsRequestMarshaller(); var unmarshaller = ListGeoLocationsResponseUnmarshaller.Instance; return(Invoke <ListGeoLocationsRequest, ListGeoLocationsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListGeoLocations operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListGeoLocations operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ListGeoLocationsResponse> ListGeoLocationsAsync(ListGeoLocationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListGeoLocationsRequestMarshaller(); var unmarshaller = ListGeoLocationsResponseUnmarshaller.Instance; return(InvokeAsync <ListGeoLocationsRequest, ListGeoLocationsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public async Task <ListGeoLocationsResponse> ListGeoLocationsAsync(ListGeoLocationsRequest request) { return(await GetAsync <ListGeoLocationsResponse>($"/geolocations" + request.ToQueryString())); }