/// <summary>
        /// Initiates the asynchronous execution of the CreateTrail operation.
        /// <seealso cref="Amazon.CloudTrail.IAmazonCloudTrail.CreateTrail"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the CreateTrail 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 <CreateTrailResponse> CreateTrailAsync(CreateTrailRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new CreateTrailRequestMarshaller();
            var unmarshaller = CreateTrailResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, CreateTrailRequest, CreateTrailResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        IAsyncResult invokeCreateTrail(CreateTrailRequest createTrailRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new CreateTrailRequestMarshaller().Marshall(createTrailRequest);
            var         unmarshaller = CreateTrailResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }