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

ListBranchesAsync() public method

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

            return InvokeAsync<ListBranchesRequest,ListBranchesResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }