execute method

  1. @override
Future execute(
  1. String? correlationId,
  2. Parameters args
)
override

Executes the next command in the execution chain using the given Parameters parameters (arguments).

  • correlationId unique transaction id to trace calls across components.
  • args the parameters (arguments) to pass to the command for execution. Returns the function that is to be called once execution is complete. If an exception is raised, then it will be called with the error. See Parameters

Implementation

@override
Future<dynamic> execute(String? correlationId, Parameters args) async {
  return await _interceptor.execute(correlationId, _next, args);
}