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

StartLoggingAsync() public method

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

            return InvokeAsync<StartLoggingRequest,StartLoggingResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }