/// <summary>
        /// Initiates the asynchronous execution of the StartLogging operation.
        /// <seealso cref="Amazon.CloudTrail.IAmazonCloudTrail.StartLogging"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the StartLogging 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 <StartLoggingResponse> StartLoggingAsync(StartLoggingRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new StartLoggingRequestMarshaller();
            var unmarshaller = StartLoggingResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, StartLoggingRequest, StartLoggingResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
        IAsyncResult invokeStartLogging(StartLoggingRequest startLoggingRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new StartLoggingRequestMarshaller().Marshall(startLoggingRequest);
            var         unmarshaller = StartLoggingResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }
Exemplo n.º 3
0
 public override StartLoggingResponse GetResponse(UnmarshallerContext unmarshallerContext)
 {
     return(StartLoggingResponseUnmarshaller.Unmarshall(unmarshallerContext));
 }