applyProjection method
Implementation
CommandApplyStatus applyProjection(CommandProjectionImage image) {
if (_generation < image.generation) {
_generation = image.generation;
}
for (final entry in image.commands) {
_entries[entry.commandId] = entry;
if (entry.lastEventId != null) _seenEventIds.add(entry.lastEventId!);
if (entry.terminalReceiptId != null) {
_seenReceiptIds.add(entry.terminalReceiptId!);
}
}
return const CommandApplyRecorded();
}