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

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