コード例 #1
0
 /// <summary>
 /// Method that is called when the rules are created by the <see cref="IRuleRunner"/> in
 /// order to do the initial setup for the rule.
 /// </summary>
 /// <param name="context">The context that the <see cref="IRuleRunner"/> creates holding callbacks to get the differences.</param>
 public abstract void Initialize(RuleRunnerContext context);
コード例 #2
0
 /// <summary>
 //// Method that is called when the rules are created by the <see cref="IRuleRunner"/> in
 /// order to do the initial setup for the rule. This method stores the rule settings and calls
 /// <see cref="Initialize(RuleRunnerContext)"/>.
 /// </summary>
 /// <param name="context">The context containing callbacks and settings for the rule to use.</param>
 /// <param name="settings">The settings for the rule.</param>
 public void Setup(RuleRunnerContext context, RuleSettings settings)
 {
     Settings = settings;
     Initialize(context);
 }