开发者

Domain Event Design Pattern

开发者 https://www.devze.com 2023-01-17 18:26 出处:网络
I\'ve been reviewing an example of domain event design blogged about recently by Mike Hadlow and created originally by Udi Dahan.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消