public Task ProcessAsync(Element definition, ElementState result) { //result.Status = Status.Ok; var rules = new Rules.RuleProcessor(definition.StateRules); rules.Run(result); return(Task.CompletedTask); }
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); }