JOliver EventStore - How to access all stored even

2019-04-11 00:59发布

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条回答
Bombasti
2楼-- · 2019-04-11 01:55

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

查看更多
登录 后发表回答