Amazon.CodeBuild.AmazonCodeBuildClient.StopBuildAsync C# (CSharp) Method

StopBuildAsync() public method

Initiates the asynchronous execution of the StopBuild operation.
public StopBuildAsync ( StopBuildRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CodeBuild.Model.StopBuildRequest Container for the necessary parameters to execute the StopBuild operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<StopBuildResponse> StopBuildAsync(StopBuildRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new StopBuildRequestMarshaller();
            var unmarshaller = StopBuildResponseUnmarshaller.Instance;

            return InvokeAsync<StopBuildRequest,StopBuildResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }