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

GetBranchAsync() public method

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

            return InvokeAsync<GetBranchRequest,GetBranchResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }