public void RemoveRule(QRule rule) { switch (rule.Behavior) { case QBehavior.Skip: Rules.Remove(rule); break; case QBehavior.Redirect: Rules.Remove(rule); break; case QBehavior.Block: BlackList.Remove(rule); break; default: throw new ArgumentOutOfRangeException(); } }
public List <QItemCache> GetItemsFromCacheByRule(QRule rule) { return(cache.GetItems(rule.Guid)); }