/// <summary> /// Initiates the asynchronous execution of the GetChange operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.GetChange"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetChange 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 <GetChangeResponse> GetChangeAsync(GetChangeRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetChangeRequestMarshaller(); var unmarshaller = GetChangeResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, GetChangeRequest, GetChangeResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeGetChange(GetChangeRequest getChangeRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetChangeRequestMarshaller().Marshall(getChangeRequest); var unmarshaller = GetChangeResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }