public bool ContainsNoTopics() { if (AppliesTo == null) { AppliesTo = new AuthorizationProviderFilter(); } return(AppliesTo.HasTopics == false); }
public bool ContainsTopic(string topic) { if (AppliesTo == null) { AppliesTo = new AuthorizationProviderFilter(); } return(AppliesTo.HasTopics ? AppliesTo.Topics.Contains(topic, StringComparer.OrdinalIgnoreCase) : false); }
public bool ContainsServerRole(ServerRole serverRole) { if (AppliesTo == null) { AppliesTo = new AuthorizationProviderFilter(); } return((AppliesTo.ServerRole & serverRole) == serverRole); }