/// <summary>
 ///   Initializes a new instance of the <see cref="PropertyRuleSource" /> class.
 /// </summary>
 /// <param name="factory"> The factory. </param>
 /// <param name="action"> The action. </param>
 public PropertyRuleSource(RuleBuilderFactory factory, Action action)
     : base(factory, action)
 {
 }
Beispiel #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="FieldRuleSource" /> class.
 /// </summary>
 /// <param name="factory"> The factory. </param>
 /// <param name="action"> The action. </param>
 public FieldRuleSource(RuleBuilderFactory factory, Action action)
     : base(factory, action)
 {
 }
 /// <summary>
 ///     Builds the rules from the specified <see cref="Actions.Action" />.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <returns></returns>
 public override RuleList BuildRules(Action action)
 {
     this.Rules.AddRange(RuleBuilderService.RetrieveRules(action));
     return this.Rules;
 }
 /// <summary>
 ///     Builds the rules from the specified <see cref="Actions.Action" />.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <returns></returns>
 public override RuleList BuildRules(Vergosity.Actions.Action action)
 {
     return(RuleBuilderService.RetrieveRules(action));
 }
 /// <summary>
 ///     Builds the rules.
 /// </summary>
 /// <param name="action"> The action. </param>
 /// <returns> </returns>
 public abstract RuleList BuildRules(Action action);