Abstract
Private
_cachePrivate
_commitProtected
_eventHistory of all events applied to this aggregate in order
Protected
_lastMark the instance as deleted
Readonly
streamTimestamp of the last applied event
Apply an event to the aggregate and execute a state change
Apply an event to the aggregate from the database. Generally not meant to be called outside aggregate population.
Commit all uncommitted events to the store
Commit all uncommitted events to the store and link those events
to the provided Command via Command.$correlationId
. Additionally pass
on any metadata included as part of the command.
Protected
getGet a duplicate of the current aggregate in the state it was prior to the application of the specified event.
Generated using TypeDoc
Base class to provide Aggregate functionality