/// <summary> /// Validates the action /// </summary> /// <param name="validator"></param> /// <param name="context"></param> /// <returns></returns> public abstract IMacroActionValidationResult Validate(IMacroActionValidator validator, IMacroValidationContext context);
/// <summary> /// Validates the action using the context /// </summary> /// <param name="validator"></param> /// <param name="context"></param> /// <returns></returns> public override IMacroActionValidationResult Validate(IMacroActionValidator validator, IMacroValidationContext context) { return validator.Validate(this, context); }
/// <summary> /// Instantiates a new instance of the <see cref="MacroValidator"/> class /// </summary> /// <param name="actionValidator"></param> /// <param name="register"></param> public MacroValidator(IMacroActionValidator actionValidator, IMacroMethodRegister register) { this._actionValidator = actionValidator; this._register = register; this._depth = 0; }