新增TCP扩展
This commit is contained in:
1 parent
514d6f5255
commit
f119665d29
26 files changed
+2457
-34
No files matched your search
@@ -153,25 +153,25 @@ namespace HHWMS.Web.Controllers
|
||||
return JsonMore("No Data");
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public github GetGithubInfo()
|
||||
{
|
||||
var rv = Wtm.ReadFromCache<github>("githubinfo", () =>
|
||||
{
|
||||
var s = Wtm.CallAPI<github>("github", "repos/dotnetcore/wtm", 60).Result;
|
||||
return s.Data;
|
||||
}, 1800);
|
||||
//[AllowAnonymous]
|
||||
//public github GetGithubInfo()
|
||||
//{
|
||||
// var rv = Wtm.ReadFromCache<github>("githubinfo", () =>
|
||||
// {
|
||||
// var s = Wtm.CallAPI<github>("github", "repos/dotnetcore/wtm", 60).Result;
|
||||
// return s.Data;
|
||||
// }, 1800);
|
||||
|
||||
return rv;
|
||||
}
|
||||
// return rv;
|
||||
//}
|
||||
|
||||
public class github
|
||||
{
|
||||
public int stargazers_count { get; set; }
|
||||
public int forks_count { get; set; }
|
||||
public int subscribers_count { get; set; }
|
||||
public int open_issues_count { get; set; }
|
||||
}
|
||||
//public class github
|
||||
//{
|
||||
// public int stargazers_count { get; set; }
|
||||
// public int forks_count { get; set; }
|
||||
// public int subscribers_count { get; set; }
|
||||
// public int open_issues_count { get; set; }
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user