Esempio n. 1
0
        public Task ProcessAsync(Element definition, ElementState result)
        {
            //result.Status = Status.Ok;

            var rules = new Rules.RuleProcessor(definition.StateRules);

            rules.Run(result);

            return(Task.CompletedTask);
        }
Esempio n. 2
0
        public Task ProcessAsync(Element definition, IEnumerable <ElementState> states)
        {
            var rules = new Rules.RuleProcessor(definition.StateRules);

            foreach (var result in states)
            {
                //result.Status = Status.Ok;

                rules.Run(result);
            }

            return(Task.CompletedTask);
        }