JOliver EventStore - 如何访问所有存储的事件?
如何访问 EventStore 中所有存储的事件以重建我的读取模型?
问题 J Oliver EventStore V2 提到了一个名为 GetFrom
的方法。 0个问题,但我在Wireup返回的接口“IStoreEvents”上找不到这个方法。
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.
该方法是
IPersistStreams
接口的一部分,而不是IStoreEvents
接口的一部分。 API 需要稍微改进以适应这一点。我刚刚向IStoreEvents
添加了一个名为GetFrom(DateTime started)
的方法,该方法返回IEnumerable
:https://github.com/joliver/EventStore/commit/1a039073df20fba11562c3c1a872180c225122c9
That method is a part of the
IPersistStreams
interface and not theIStoreEvents
interface. The API needs to be refined slightly to accommodate that. I have just added a method toIStoreEvents
calledGetFrom(DateTime started)
that returnsIEnumerable<Commit>
:https://github.com/joliver/EventStore/commit/1a039073df20fba11562c3c1a872180c225122c9