Exemple #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;
 }
Exemple #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);
 }
Exemple #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;
 }