This version signals a change in the direction of this package. The CQRS nomenclature and classes have been removed in favour of a cleaner API that doesn't model a specific pattern.
Mediator
can now broadcast events to listeners.Bus
andRelay
classes.RequestResult
Command
,CommandHandler
,CommandResult
Query
andQueryHandler
Mediator
can now be disposed to prevent further interaction.
- New
Mediator
that handles dispatch of commands and queries. - New base
Request
thatCommand
andQuery
implement.
SimpleQueryHandler
andSimpleCommandHandler
have been replaced withFuncHandler
.
- Small example amends
- Includes all major interfaces required for working with CQRS including commands, queries and their handlers.
- Includes
SimpleQueryHandler
andSimpleCommandHandler
classes that receive functions to execute. These can be used for fast prototyping.