Amazon.CodeCommit.AmazonCodeCommitClient.GetCommitAsync C# (CSharp) Method

GetCommitAsync() public method

Initiates the asynchronous execution of the GetCommit operation.
public GetCommitAsync ( GetCommitRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CodeCommit.Model.GetCommitRequest Container for the necessary parameters to execute the GetCommit operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetCommitResponse> GetCommitAsync(GetCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetCommitRequestMarshaller();
            var unmarshaller = GetCommitResponseUnmarshaller.Instance;

            return InvokeAsync<GetCommitRequest,GetCommitResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }