Looking for examples of Domain Events

ε祈祈猫儿з 提交于 2019-12-20 12:36:09

问题


Does any one know where to find example code for an implementation of Domain Events as described by Udi Dahan in Domain Events – Salvation?


回答1:


DDDSample.Net has one.




回答2:


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).




回答3:


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



来源:https://stackoverflow.com/questions/4569475/looking-for-examples-of-domain-events

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