Пример #1
0
        public PublicAccessRule AddRule(string ruleValue, string ruleType)
        {
            var rule = new PublicAccessRule
            {
                AccessEntryId = Key,
                RuleValue     = ruleValue,
                RuleType      = ruleType
            };

            _ruleCollection.Add(rule);
            return(rule);
        }
Пример #2
0
 public void RemoveRule(PublicAccessRule rule)
 {
     _ruleCollection.Remove(rule);
 }