/// <summary> /// Initiates the asynchronous execution of the ListHostedZones operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.ListHostedZones"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHostedZones 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 <ListHostedZonesResponse> ListHostedZonesAsync(ListHostedZonesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListHostedZonesRequestMarshaller(); var unmarshaller = ListHostedZonesResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ListHostedZonesRequest, ListHostedZonesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeListHostedZones(ListHostedZonesRequest listHostedZonesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListHostedZonesRequestMarshaller().Marshall(listHostedZonesRequest); var unmarshaller = ListHostedZonesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }