/// <summary> /// Initiates the asynchronous execution of the CreateProposal operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateProposal 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/CreateProposal">REST API Reference for CreateProposal Operation</seealso> public virtual Task <CreateProposalResponse> CreateProposalAsync(CreateProposalRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance; return(InvokeAsync <CreateProposalResponse>(request, options, cancellationToken)); }
internal virtual CreateProposalResponse CreateProposal(CreateProposalRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProposalRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance; return(Invoke <CreateProposalResponse>(request, options)); }