validate abstract method

List<ValidationResult> validate(
  1. ICommand command,
  2. Parameters args
)

Validates arguments of the wrapped command before its execution.

The interceptor can use this method to intercept and alter validation of the command arguments. Otherwise it shall just delegate the call to the wrapped command.

  • command the next command in the call chain to be validated against.
  • args the parameters (arguments) to validate. Returns an array of ValidationResults.

See Parameters See ValidationResult

Implementation

List<ValidationResult> validate(ICommand command, Parameters args);