How can I access all stored events in the EventStore to rebuild my read models?
A method called GetFrom
is mentioned at question J Oliver EventStore V2.0 questions, but I cannot find this method on the interface "IStoreEvents" which is returned from Wireup.
Jonathan Oliver
That method is a part of the IPersistStreams
interface and not the IStoreEvents
interface. The API needs to be refined slightly to accommodate that. I have just added a method to IStoreEvents
called GetFrom(DateTime started)
that returns IEnumerable<Commit>
:
https://github.com/joliver/EventStore/commit/1a039073df20fba11562c3c1a872180c225122c9
来源:https://stackoverflow.com/questions/5920487/joliver-eventstore-how-to-access-all-stored-events