Amazon.Snowball.AmazonSnowballClient.CancelJobAsync C# (CSharp) Method

CancelJobAsync() public method

Initiates the asynchronous execution of the CancelJob operation.
public CancelJobAsync ( CancelJobRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Snowball.Model.CancelJobRequest Container for the necessary parameters to execute the CancelJob operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new CancelJobRequestMarshaller();
            var unmarshaller = CancelJobResponseUnmarshaller.Instance;

            return InvokeAsync<CancelJobRequest,CancelJobResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }