Amazon.CloudWatchEvents.AmazonCloudWatchEventsClient.PutEventsAsync C# (CSharp) Method

PutEventsAsync() public method

Initiates the asynchronous execution of the PutEvents operation.
public PutEventsAsync ( PutEventsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatchEvents.Model.PutEventsRequest Container for the necessary parameters to execute the PutEvents operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<PutEventsResponse> PutEventsAsync(PutEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new PutEventsRequestMarshaller();
            var unmarshaller = PutEventsResponseUnmarshaller.Instance;

            return InvokeAsync<PutEventsRequest,PutEventsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }