예제 #1
0
        public IActionResult Index()
        {//http://localhost:5000/Myhome
            HashEntry[] hs = new HashEntry[] { };
            hs.Append(new HashEntry("as", "sds"));
            hs.Append(new HashEntry("as1", "sds"));
            try
            {
                _connect.GetDatabase().StringSet("session", "ok");
                string value = _connect.GetDatabase().StringGet("session").ToString();
            }
            catch
            {
            }
            _Iop.run();
            ClaimsIdentity claimsIdentity = HttpContext.User.Identity as ClaimsIdentity;
            UserModel      user           = new UserModel();

            user.username = "******";
            user.id       = 1;
            user.password = "******";

            return(View(user));
        }