/// <summary> /// Initiates the asynchronous execution of the CreateHostedZone operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.CreateHostedZone"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHostedZone 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 <CreateHostedZoneResponse> CreateHostedZoneAsync(CreateHostedZoneRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateHostedZoneRequestMarshaller(); var unmarshaller = CreateHostedZoneResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, CreateHostedZoneRequest, CreateHostedZoneResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeCreateHostedZone(CreateHostedZoneRequest createHostedZoneRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new CreateHostedZoneRequestMarshaller().Marshall(createHostedZoneRequest); var unmarshaller = CreateHostedZoneResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }