如何至少获得有关存储库许可证的一些数据?

How to get at least some data on the repository license?

我根据文档搜索存储库。 https://github.com/octokit/octokit.net/blob/master/docs/search.md
如何至少获得一些关于存储库许可证的数据?
我的意思是从此页面获取数据。 enter image description here

或者文件的内容 - "LICENSE.txt"

我需要图中指示的任何区域的信息。
我尝试使用代码来做,但我不明白如何正确地做

var repoLicen = client.Repository.GetLicenseContents("octokit", "octokit.net");  
var licen = repoLicen.li???  

试试这个:

var licenseContents = github.Repository.GetLicenseContents("octokit", "octokit.net").Result;

GetLicenseContents returnsTask 这意味着该方法是异步的。 https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/