GetCommitsAsync和GetCommitsBatchAsync有什么区别? [英] What is the difference between GetCommitsAsync and GetCommitsBatchAsync?

查看:294
本文介绍了GetCommitsAsync和GetCommitsBatchAsync有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用来自Microsoft.TeamFoundation.SourceControl.WebApi命名空间的 GitHttpClientBase 类的方法,位于
或者从此链接: getCommits()& getCommitsBatch()


I am using methods from GitHttpClientBase class from Microsoft.TeamFoundation.SourceControl.WebApi namespace in Microsoft.TeamFoundationServer.Client package.

There are 2 similar methods for retrieving commits: GetCommitsAsync and GetCommitsBatchAsync. Do you know what is the difference? When each of them should be used?

解决方案

There isn't any difference between them. They both retrieve git commits for a project and use the same input parameters and return the same object, you can check this from "Object Browser": Or from this link: getCommits() & getCommitsBatch()

这篇关于GetCommitsAsync和GetCommitsBatchAsync有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆