示例#1
0
        public void Delete()
        {
            IsDeleted = true;
            var persistGrant = PersistGrants.Where(a => !a.IsRevoke).ToList();

            foreach (var items in persistGrant)
            {
                items.Update();
            }
        }
示例#2
0
        public void Add(string subjectId, string refreshToken, string ipAddress, DateTime expiredTime, UserType userType)
        {
            var persistGrants = new PersistGrants(subjectId, refreshToken, ipAddress, expiredTime, userType);

            _grantsList.Add(persistGrants);
        }
 public void Add(PersistGrants persistGrants)
 {
     _applicationDbContext.PersistGrants.Add(persistGrants);
 }