예제 #1
0
        public RoleCached GetRole(string name)
        {
            lock (lockObject)
                if (_allRoles == null)
                {
                    Initialize();
                }

            return(AllRoles.TryGetValue(name, out var ret) ? ret : null);
        }
예제 #2
0
 public RoleCached GetRole(string name)
 {
     return AllRoles.TryGetValue(name, out var ret) ? ret : null;
 }