Beispiel #1
0
        public string GetTName()
        {
            //BLL层发起Http请求
            var t2 = _client.PostAsync("http://www.cnblogs.com", "name=zzq").Result;

            return($"{t2}->{_sysRoleBLL.GetRoL()}");
        }
Beispiel #2
0
        public ActionResult <string> Call()
        {
            var t1 = _client.GetAsync("http://www.baidu.com?id=2").Result;
            var t2 = _client.PostAsync("http://www.4399.com").Result;
            var t3 = _sysUserInfoBLL.GetTName();

            return(Ok(new { t1, t2, t3 }));
        }