Readonly
decideReadonly
evolveReadonly
fetchFetch events
list of Events with Version and Event Metadata
Readonly
handleHandles the command of type C
, and returns new persisted list of pairs of event and its version.
list of persisted events with Version and Event Metadata
Readonly
initialReadonly
saveSave events
a list of newly saved Event(s) of type E
with Version of type V
and with Event Metadata of type EM
Readonly
versionGet the latest event stream version / sequence
the latest version / sequence of the event stream that this event belongs to.
Generated using TypeDoc
Event sourcing aggregate interface is using/delegating a
decider
of typeIDecider
<C
,S
,E
> to handle commands and produce events. In order to handle the command, aggregate needs to fetch the current state (represented as a list of events) viaIEventRepository.fetchEvents
function, and then delegate the command to thedecider
which can produce new event(s) as a result.Produced events are then stored via
IEventRepository.save
function.Author
Иван Дугалић / Ivan Dugalic /
Idugalic