Exemplo n.º 1
0
 /**
  * Core constructor which takes method and attributes
  * Other constructors will call this
  */
 public Rule(Func <COMPONENT, OUTPUT, bool> method, RuleAttributes ruleAttributes)
 {
     RuleMethod          = method;
     ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name);
     RuleAttributes      = ruleAttributes;
 }
Exemplo n.º 2
0
 public Rule(IRule <COMPONENT, OUTPUT> rule, RuleAttributes ruleAttributes)
 {
     RuleMethod          = rule.RuleMethod;
     RuleAttributes      = (ruleAttributes == null ? new RuleAttributes() : ruleAttributes);
     ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name);
 }
Exemplo n.º 3
0
 /**
  * Core constructor which takes method and attributes
  * Other constructors will call this
  */
 public Rule(RuleMethod method, RuleAttributes ruleAttributes)
 {
     RuleMethod          = method;
     ruleAttributes.Name = setMethodName(RuleMethod, ruleAttributes.Name);
     RuleAttributes      = ruleAttributes;
 }