Search
Preparing search index...
The search index is not available
ceb
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
ceb
@tmorin/ceb-messaging-simple
SimpleCommandBus
Class SimpleCommandBus
Hierarchy
SimpleCommandBus
Implements
CommandBus
Disposable
Index
Constructors
constructor
Accessors
observer
Methods
dispose
execute
execute
And
Forget
handle
process
Handler
Output
resolve
Handler
Constructors
constructor
new
Simple
Command
Bus
(
eventBus
:
EventBus
, emitter
:
EmittableCommandBus
, handlers
?:
Map
<
string
,
CommandHandler
<
any
,
any
,
any
>
>
)
:
SimpleCommandBus
Parameters
eventBus:
EventBus
emitter:
EmittableCommandBus
handlers:
Map
<
string
,
CommandHandler
<
any
,
any
,
any
>
>
= ...
Returns
SimpleCommandBus
Accessors
observer
get
observer
(
)
:
ObservableCommandBus
Returns
ObservableCommandBus
Methods
dispose
dispose
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
execute
execute
<
R
,
C
>
(
command
:
C
, options
?:
Partial
<
ExecuteActionOptions
>
)
:
Promise
<
R
>
Type parameters
R
:
Result
<
any
,
ResultHeaders
,
R
>
=
Result
<
any
,
ResultHeaders
>
C
:
Command
<
any
,
MessageHeaders
,
C
>
=
Command
<
any
,
MessageHeaders
>
Parameters
command:
C
Optional
options:
Partial
<
ExecuteActionOptions
>
Returns
Promise
<
R
>
execute
And
Forget
execute
And
Forget
<
C
>
(
command
:
C
)
:
void
Type parameters
C
:
Command
<
any
,
MessageHeaders
,
C
>
=
Command
<
any
,
MessageHeaders
>
Parameters
command:
C
Returns
void
handle
handle
<
C
,
R
,
Es
>
(
commandType
:
string
, handler
:
CommandHandler
<
C
,
R
,
Es
>
)
:
Removable
Type parameters
C
:
Command
<
any
,
MessageHeaders
,
C
>
=
Command
<
any
,
MessageHeaders
>
R
:
Result
<
any
,
ResultHeaders
,
R
>
=
Result
<
any
,
ResultHeaders
>
Es
:
Event
<
any
,
MessageHeaders
>
[]
=
[
]
Parameters
commandType:
string
handler:
CommandHandler
<
C
,
R
,
Es
>
Returns
Removable
Private
process
Handler
Output
process
Handler
Output
<
R
>
(
output
:
CommandHandlerOutputSync
<
R
,
[
]
>
)
:
void
|
CommandResult
<
R
>
Type parameters
R
:
Result
<
any
,
ResultHeaders
,
R
>
Parameters
output:
CommandHandlerOutputSync
<
R
,
[
]
>
Returns
void
|
CommandResult
<
R
>
Private
resolve
Handler
resolve
Handler
<
C
,
R
,
Es
>
(
command
:
Command
<
any
,
MessageHeaders
>
)
:
CommandHandler
<
C
,
R
,
Es
>
Type parameters
C
:
Command
<
any
,
MessageHeaders
,
C
>
=
Command
<
any
,
MessageHeaders
>
R
:
Result
<
any
,
ResultHeaders
,
R
>
=
Result
<
any
,
ResultHeaders
>
Es
:
Event
<
any
,
MessageHeaders
>
[]
=
[
]
Parameters
command:
Command
<
any
,
MessageHeaders
>
Returns
CommandHandler
<
C
,
R
,
Es
>
Modules
@tmorin/ceb-
bundle-
web
@tmorin/ceb-
elements-
builders
@tmorin/ceb-
elements-
core
@tmorin/ceb-
elements-
testing
@tmorin/ceb-
inversion-
builder
@tmorin/ceb-
inversion-
core
@tmorin/ceb-
inversion-
testing-
core
@tmorin/ceb-
inversion-
testing-
jest
@tmorin/ceb-
inversion-
testing-
mocha
@tmorin/ceb-
messaging-
adapter-
dom
@tmorin/ceb-
messaging-
adapter-
electron
@tmorin/ceb-
messaging-
adapter-
purify
@tmorin/ceb-
messaging-
builder-
core
@tmorin/ceb-
messaging-
builder-
inversion
@tmorin/ceb-
messaging-
core
@tmorin/ceb-
messaging-
inversion
@tmorin/ceb-
messaging-
moleculer
@tmorin/ceb-
messaging-
moleculer-
inversion
@tmorin/ceb-
messaging-
simple
@tmorin/ceb-
messaging-
simple-
builder
@tmorin/ceb-
messaging-
simple-
inversion
@tmorin/ceb-
messaging-
testing
@tmorin/ceb-
templating-
builder
@tmorin/ceb-
templating-
engine
@tmorin/ceb-
templating-
literal
@tmorin/ceb-
templating-
parser
@tmorin/ceb-
utilities
Simple
Command
Bus
constructor
observer
dispose
execute
execute
And
Forget
handle
process
Handler
Output
resolve
Handler
Generated using
TypeDoc