/// <summary> /// Initiates the asynchronous execution of the DescribeTrails operation. /// <seealso cref="Amazon.CloudTrail.IAmazonCloudTrail.DescribeTrails"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTrails 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 <DescribeTrailsResponse> DescribeTrailsAsync(DescribeTrailsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeTrailsRequestMarshaller(); var unmarshaller = DescribeTrailsResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DescribeTrailsRequest, DescribeTrailsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeDescribeTrails(DescribeTrailsRequest describeTrailsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeTrailsRequestMarshaller().Marshall(describeTrailsRequest); var unmarshaller = DescribeTrailsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
public override DescribeTrailsResponse GetResponse(UnmarshallerContext unmarshallerContext) { return(DescribeTrailsResponseUnmarshaller.Unmarshall(unmarshallerContext)); }