Exemplo n.º 1
0
 public void Execute<T>(RuleSet ruleSet, PolicyExecutionContext<T> context)
 {
     Guard.ArgumentNotNull(ruleSet, "ruleSet");
     RuleValidation validation = new RuleValidation(context.GetType(),null);
     RuleExecution execution = new RuleExecution(validation, context);
     ruleSet.Execute(execution);
 }
Exemplo n.º 2
0
 public void Execute<T>(RuleName ruleName, PolicyExecutionContext<T> context)
 {
     Guard.ArgumentNotNull(ruleName, "ruleName");
     Execute<T>(_ruleStore.GetRuleSet(ruleName), context);
 }