/// <summary> /// Initiates the asynchronous execution of the ChangeResourceRecordSets operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.ChangeResourceRecordSets"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ChangeResourceRecordSets 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 <ChangeResourceRecordSetsResponse> ChangeResourceRecordSetsAsync(ChangeResourceRecordSetsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ChangeResourceRecordSetsRequestMarshaller(); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ChangeResourceRecordSetsRequest, ChangeResourceRecordSetsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeChangeResourceRecordSets(ChangeResourceRecordSetsRequest changeResourceRecordSetsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ChangeResourceRecordSetsRequestMarshaller().Marshall(changeResourceRecordSetsRequest); var unmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }