Open johanhaleby opened 2 years ago
introduce:
SnapshottingApplicationService {
fun execute(streamId, fn: (State, List<Event>) -> List<Event>)
}
GenericApplicationService can then impl both SnapshottingApplicationService
and ApplicationService
.
Vanligt:
SnapshotStore i ApplicationService