Amazon.SimpleWorkflow.AmazonSimpleWorkflowClient.RequestCancelWorkflowExecutionAsync C# (CSharp) Method

RequestCancelWorkflowExecutionAsync() public method

Initiates the asynchronous execution of the RequestCancelWorkflowExecution operation.
public RequestCancelWorkflowExecutionAsync ( RequestCancelWorkflowExecutionRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.SimpleWorkflow.Model.RequestCancelWorkflowExecutionRequest Container for the necessary parameters to execute the RequestCancelWorkflowExecution operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<RequestCancelWorkflowExecutionResponse> RequestCancelWorkflowExecutionAsync(RequestCancelWorkflowExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new RequestCancelWorkflowExecutionRequestMarshaller();
            var unmarshaller = RequestCancelWorkflowExecutionResponseUnmarshaller.Instance;

            return InvokeAsync<RequestCancelWorkflowExecutionRequest,RequestCancelWorkflowExecutionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonSimpleWorkflowClient