protected void RaiseEvent(IEvent e) { var versionedEvent = new VersionedEvent(Version + 1, e); ApplyEvent(versionedEvent); _uncommitedEvents.Add(versionedEvent); }
private void ApplyEvent(VersionedEvent e) { State = _reducer(State, e.Event); Version = e.Version; }