execute abstract method

Future execute(
  1. String? correlationId,
  2. ICommand command,
  3. Parameters args
)

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.

  • correlationId (optional) transaction id to trace execution through call chain.
  • command the next command in the call chain that is to be executed.
  • args the parameters (arguments) to pass to the command for execution. Returns execution result. If an exception is raised, then it will be throw exception.

See Parameters

Implementation

Future<dynamic> execute(
    String? correlationId, ICommand command, Parameters args);