Looking for examples of Domain Events

Roman picture Roman · Dec 31, 2010 · Viewed 12.1k times · Source

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

Answer

Byron Sommardahl picture Byron Sommardahl · Jun 7, 2012

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