Пример #1
0
        /// <inheritdoc />
        public Task UpdateUserSessionAsync(string key, UserSessionUpdate session)
        {
            var item = _store[key].Clone();

            session.CopyTo(item);
            _store[key] = item;
            return(Task.CompletedTask);
        }
Пример #2
0
 /// <summary>
 /// Copies this instance into another
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public void CopyTo(UserSessionUpdate other)
 {
     other.SubjectId = SubjectId;
     other.SessionId = SessionId;
     other.Created   = Created;
     other.Renewed   = Renewed;
     other.Expires   = Expires;
     other.Ticket    = Ticket;
 }
Пример #3
0
 /// <summary>
 /// Copies this instance into another
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public void CopyTo(UserSessionUpdate other)
 {
     other.Renewed = Renewed;
     other.Expires = Expires;
     other.Ticket  = Ticket;
 }