Apache.Shiro.Session.Management.AbstractSessionManager.GetSession C# (CSharp) Method

GetSession() protected method

protected GetSession ( object sessionId ) : ISession
sessionId object
return ISession
        protected virtual ISession GetSession(object sessionId)
        {
            if (sessionId == null)
            {
                throw new ArgumentNullException("sessionId");
            }

            var session = DoGetSession(sessionId);
            if (session == null)
            {
                throw new UnknownSessionException(
                    string.Format(Properties.Resources.SessionUnknownMessage, sessionId));
            }
            return session;
        }