Example #1
0
 /// <summary>
 /// Creates a new instance of the authentication context from the specified user session
 /// </summary>
 public AuthenticationContext(SessionInfo session)
 {
     if (session.Expiry < DateTime.Now && !session.Extend())
     {
         throw new SessionExpiredException();
     }
     this.m_principal = session.Principal;
     this.Session     = session;
 }