I've been reviewing an example of domain event design blogged about recently by Mike Hadlow and created originally by Udi Dahan.
Currently we are publishing static events on our domain objects and subscribing to them directly within our services, or via our plugin model (we locate and initialize our plugins at runtime using StructureMap).
What is the advantage of using Udi's design?开发者_运维百科
It helps to avoid memory leaks caused by not deregistering event handlers when using C# built-in events.
精彩评论