Exemplo n.º 1
0
        /// <inheritdoc />
        public Task UpdateUserSessionAsync(string key, UserSessionUpdate session)
        {
            var item = _store[key].Clone();

            session.CopyTo(item);
            _store[key] = item;
            return(Task.CompletedTask);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }