DomainModel
A purely functional, event driven domain model
- Type parameters:
- Event
domain events
- Rejection
domain error type
- State
state model of your program, a.k.a aggregate root
Value members
Abstract methods
Initial or empty value for this domain model
Initial or empty value for this domain model
for any aggregate, it is either created and have a history, or is in initial state
A function that defines how this model transitions in response to events; it is like an event handler, but is pure.
A function that defines how this model transitions in response to events; it is like an event handler, but is pure.
An event that can't be applied results in a rejection or conflict, based on whether it is read from journal or applied for decision