gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 11:57:09 25 4
gpt4 key购买 nike

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

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

最佳答案

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

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

关于cqrs - JOliver EventStore - 如何访问所有存储的事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5920487/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com