Preparing search index...
The search index is not available
Moirae
Moirae
@moirae/core
SagaManager
Class SagaManager
Hierarchy
SagaManager
Implements
OnApplicationBootstrap
Index
Constructors
constructor
Properties
_cache
_explorer
_sagas
Methods
add
Saga
apply
Event
To
Sagas
on
Application
Bootstrap
rollback
Sagas
Constructors
constructor
new
Saga
Manager
(
_cache
:
ICache
, _explorer
:
Explorer
)
:
SagaManager
Parameters
_cache:
ICache
_explorer:
Explorer
Returns
SagaManager
Properties
Private
Readonly
_cache
_cache
:
ICache
Private
Readonly
_explorer
_explorer
:
Explorer
Private
_sagas
_sagas
:
Saga
[]
Methods
add
Saga
add
Saga
(
saga
:
Saga
)
:
void
Parameters
saga:
Saga
Returns
void
apply
Event
To
Sagas
apply
Event
To
Sagas
(
event
:
IEvent
<
unknown
>
)
:
Promise
<
ICommand
[]
>
Parameters
event:
IEvent
<
unknown
>
Returns
Promise
<
ICommand
[]
>
on
Application
Bootstrap
on
Application
Bootstrap
(
)
:
void
Returns
void
rollback
Sagas
rollback
Sagas
(
correlationId
:
string
)
:
Promise
<
ICommand
[]
>
Parameters
correlationId:
string
Returns
Promise
<
ICommand
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Moirae
@moirae/core -
v0.6.0
@moirae/node-
plugin -
v0.6.0
@moirae/rabbitmq -
v0.6.0
@moirae/redis -
v0.6.0
@moirae/typeorm -
v0.6.0
Saga
Manager
constructor
_cache
_explorer
_sagas
add
Saga
apply
Event
To
Sagas
on
Application
Bootstrap
rollback
Sagas
Generated using
TypeDoc