public RoleCached GetRole(string name) { lock (lockObject) if (_allRoles == null) { Initialize(); } return(AllRoles.TryGetValue(name, out var ret) ? ret : null); }
public RoleCached GetRole(string name) { return AllRoles.TryGetValue(name, out var ret) ? ret : null; }