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

GetEventSelectorsAsync() public method

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

            return InvokeAsync<GetEventSelectorsRequest,GetEventSelectorsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }