JOliver EventStore - How to access all stored events?

ⅰ亾dé卋堺 提交于 2020-01-13 05:07:08

问题


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.


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!