@brainhubeu/sqrs › "commands/CommandBus" › CommandBus
Interface for command bus that allows dispatching commands to appropriate handlers
interface
CommandBus
▪ T
type of result returned after dispatching a command
- CommandBus
▸ dispatch(command
: Command): Promise‹T›
Defined in commands/CommandBus.ts:26
Dispatches a command to appropriate command handler
memberof
CommandBus
Parameters:
Name | Type | Description |
---|---|---|
command |
Command | command to dispatch |
Returns: Promise‹T›
result of dispatching