예제 #1
0
        private List <RoleAttribute> GetRoleAttributes(string userName, string domain)
        {
            string key = this.GetCacheKeyForRoleAttributes(userName, domain);
            List <RoleAttribute> roleAttributes = m_Session[key] as List <RoleAttribute>;

            if (roleAttributes != null)
            {
                return(roleAttributes);
            }

            roleAttributes = KeystoneDA.GetAuthRoleAttributes(userName, domain, m_KS_ApplicationIds.ToList()).ToMsg();
            m_Session.Add(key, roleAttributes);
            return(roleAttributes);
        }