Ejemplo n.º 1
0
        public bool RuleIsSatisfied()
        {
            RuleFactory   ruleFactory  = new RuleFactory();
            IRuleStrategy ruleStrategy = ruleFactory.GetRuleStrategy(_rule);

            Context ruleContext = new Context(ruleStrategy);

            if (ruleContext.Execute(_rule, _liveEventsThatFitIntoRule.ToList()))
            {
                ClearProcessedEvents();
                return(true);
            }

            return(false);
        }