Executes the wrapped command with specified arguments.
The interceptor can use this method to intercept and alter the command execution. Otherwise it shall just delete the call to the wrapped command.
(optional) transaction id to trace execution through call chain.
the next command in the call chain that is to be executed.
the parameters (arguments) to pass to the command for execution.
the function that is to be called once execution is complete. If an exception is raised, then it will be called with the error.
Gets the name of the wrapped command.
The interceptor can use this method to override the command name. Otherwise it shall just delegate the call to the wrapped command.
the next command in the call chain.
the name of the wrapped command.
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.
the next command in the call chain to be validated against.
the parameters (arguments) to validate.
an array of ValidationResults.
Generated using TypeDoc
An interface for stackable command intercepters, which can extend and modify the command call chain.
This mechanism can be used for authentication, logging, and other functions.
ICommand
InterceptedCommand