/// <summary> /// Sets condition property of the specified rule from the xml node /// </summary> /// <param name="rule">The specified rule to have its condition property be set</param> /// <param name="condition">xml node containing the condition verification</param> private static void SetRuleCondition(ref Rule rule, XElement condition) { if (condition != null) { rule.Condition = VerifierFactory.Create(condition); } }
/// <summary> /// Sets action property of the specified rule from the xml node /// </summary> /// <param name="rule">The specified rule to have its action property be set</param> /// <param name="action">xml node containing the action verification</param> private static void SetRuleAction(ref Rule rule, XElement action) { rule.Action = VerifierFactory.Create(action); }