Amazon.CloudTrail.AmazonCloudTrailClient.LookupEventsAsync C# (CSharp) Method

LookupEventsAsync() public method

Initiates the asynchronous execution of the LookupEvents operation.
public LookupEventsAsync ( LookupEventsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudTrail.Model.LookupEventsRequest Container for the necessary parameters to execute the LookupEvents operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<LookupEventsResponse> LookupEventsAsync(LookupEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new LookupEventsRequestMarshaller();
            var unmarshaller = LookupEventsResponseUnmarshaller.Instance;

            return InvokeAsync<LookupEventsRequest,LookupEventsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }