Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 public List <QItemCache> GetItemsFromCacheByRule(QRule rule)
 {
     return(cache.GetItems(rule.Guid));
 }