Exemplo n.º 1
0
 /// <summary>
 /// 服务器状态
 /// </summary>
 /// <returns></returns>
 public IActionResult Status()
 {
     if (!(Core.CacheTo.Get("osi") is Fast.OSInfoTo osi))
     {
         osi = new Fast.OSInfoTo();
         Core.CacheTo.Set("osi", osi, 10, false);
     }
     return(Content(osi.ToView()));
 }
Exemplo n.º 2
0
        public IActionResult Test1()
        {
            var osi = new Fast.OSInfoTo();

            return(Content(osi.ToView()));
        }