コード例 #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the DeleteTrail operation.
        /// <seealso cref="Amazon.CloudTrail.IAmazonCloudTrail.DeleteTrail"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DeleteTrail 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 <DeleteTrailResponse> DeleteTrailAsync(DeleteTrailRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DeleteTrailRequestMarshaller();
            var unmarshaller = DeleteTrailResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, DeleteTrailRequest, DeleteTrailResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
コード例 #2
0
        IAsyncResult invokeDeleteTrail(DeleteTrailRequest deleteTrailRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new DeleteTrailRequestMarshaller().Marshall(deleteTrailRequest);
            var         unmarshaller = DeleteTrailResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }