Example #1
0
 private void SaveLaunchedEventsDueToCommandExecution(IEnumerable <IEvent> sourceEvents)
 {
     EntityEventWriter.SaveEvents(ExecutingCommand, ExecutingCommand.EntityId, sourceEvents, ExecutingCommand.Version);
 }
Example #2
0
 private void SaveSnapshot(ICommand command, ISnapshot snapshot)
 {
     EntityEventWriter.SaveEvents(command, command.EntityId, new IEvent[] { snapshot }, command.Version);
 }