How to use J Oliver's EventStore library?

眉间皱痕 提交于 2019-12-06 12:37:04
  1. You've actually got multiple units of work occurring in the example you gave. When an aggregate is modified it dispatches an event. Something else listens to that event and handles another unit of work and so on.

    The way the EventStore is designed, it can still accommodate your scenario but it would be three separate units of work. You would just plug in Udi's DomainEvents "Salvation" solution into your own implementation of IPublishEvents and run that inside of the AsynchronousCommitDispatcher. In true DDD a single aggregate is a unit of work--by definition this is the consistency boundary.

  2. About 8 hours ago I did a push that has the fluent stuff as part of the compilation. Try pulling down the latest from master.

  3. IStoreEvents is designed to be multithreaded so you can safely configure it as a singleton within your application. When you open a session from IStoreEvents, the session is single threaded and should not be shared across threads within your application.

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