commanded v0.8.0 Commanded.Commands.Router

Summary

Macros

Dispatch the given command to the corresponding handler for a given aggregate root uniquely identified

Include the given middleware module to be called before and after success or failure of each command dispatch

Macros

dispatch(command_module, opts)

Dispatch the given command to the corresponding handler for a given aggregate root uniquely identified

middleware(middleware_module)

Include the given middleware module to be called before and after success or failure of each command dispatch

Middleware modules are executed in the order they’ve been defined.