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

UpdateDefaultBranchAsync() public method

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

            return InvokeAsync<UpdateDefaultBranchRequest,UpdateDefaultBranchResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }