Skip to content

Latest commit

 

History

History
75 lines (42 loc) · 2.74 KB

_commands_defaultcommandbus_.defaultcommandbus.md

File metadata and controls

75 lines (42 loc) · 2.74 KB

@brainhubeu/sqrs"commands/DefaultCommandBus"DefaultCommandBus

Class: DefaultCommandBus

Hierarchy

  • DefaultCommandBus

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new DefaultCommandBus(commandHandlerProvider: CommandHandlerProvider, commandValidatorProvider: CommandValidatorProvider): DefaultCommandBus

Defined in commands/DefaultCommandBus.ts:28

Parameters:

Name Type
commandHandlerProvider CommandHandlerProvider
commandValidatorProvider CommandValidatorProvider

Returns: DefaultCommandBus

Properties

Static dependencies

dependencies: Dependencies‹typeof DefaultCommandBus› = [ commandHandlerProviderId, commandValidatorProviderId ]

Defined in commands/DefaultCommandBus.ts:25

Methods

dispatch

dispatch(command: Command): Promise‹CommandResult

Implementation of CommandBus

Defined in commands/DefaultCommandBus.ts:43

Dispatches a command in the same process and returns promise resolving with command result

memberof DefaultCommandBus

Parameters:

Name Type
command Command

Returns: Promise‹CommandResult