Exemplo n.º 1
0
        /// <summary>
        /// 由登录名获取Session
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns></returns>
        private UserSession GetSessionByLoginName(string loginName)
        {
            UserSession us = Sessions.Values.FirstOrDefault <UserSession>(ent => ent.LogonInfo.Name == loginName);

            return(us);
        }