JOliver EventStore - 如何访问所有存储的事件?

时间:2011-05-07 10:31:40

标签: cqrs event-sourcing event-store

如何在EventStore中访问所有存储的事件来重建我的阅读模型?

在问题J Oliver EventStore V2.0 questions中提到了一个名为GetFrom的方法,但我无法在从Wireup返回的“IStoreEvents”接口上找到此方法。

1 个答案:

答案 0 :(得分:5)

该方法是IPersistStreams接口的一部分,而不是IStoreEvents接口的一部分。 API需要稍微改进以适应这种情况。我刚刚向IStoreEvents添加了一个名为GetFrom(DateTime started)的方法,该方法返回IEnumerable<Commit>

https://github.com/joliver/EventStore/commit/1a039073df20fba11562c3c1a872180c225122c9