寻找领域事件的例子
有谁知道在哪里可以找到 Udi Dahan 中描述的领域事件实现的示例代码 Udi Dahan ="http://www.udidahan.com/2009/06/14/domain-events-salvation/" rel="noreferrer">域事件 – 救赎?
Does any one know where to find example code for an implementation of Domain Events as described by Udi Dahan in Domain Events – Salvation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在我看来,领域事件的更好实现可以在 https://github.com/bsommardahl/BlingBag 找到。有一个示例应用程序和实施说明。我更喜欢这个实现,因为它不使用静态类来引发域事件,也不会将您的域耦合到您的基础设施。相反,它使用普通的 ole C# 事件,并在返回域实体的服务中初始化它们(例如存储库或获取器服务)。
A better implementation of Domain Events, in my opinion, can be found at https://github.com/bsommardahl/BlingBag. There's a sample application and implementation instructions. I like this implementation more because it doesn't use the static class to raise domain events and doesn't couple your domain to your infrastructure. Instead it uses plain ole c# events and initializes them in the services that return your domain entities (like your repository or a fetcher service).
DDDSample.Net 有一个。
DDDSample.Net has one.
这是 Udi Dahan 的一个非常简洁的实现,http://www. udidahan.com/2009/06/14/domain-events-salvation/。由 Steve Smith 和 Julie Lerman 在他们的课程领域驱动设计基础知识中推荐
This is a pretty neat implementation of Udi Dahan, http://www.udidahan.com/2009/06/14/domain-events-salvation/. Recommended by Steve Smith and Julie Lerman in their course Domain-Driven Design Fundamentals