Re: Domain Event Objects vs Standard Events
"Rikard Pavelic [email protected] [domaindrivendesign]" <[email protected]> Thu, 28 May 2015 00:11:46 +0200
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Organization | N.G.S. |
| Message-ID | <[email protected]> |
On 27 May 2015 12:10:32 -0700 "[email protected] [domaindrivendesign]" <[email protected]> wrote: > What's everyone opinion on using (assuming .NET) standard custom > events as opposed to the traditional DDD way (static domain publisher > class)? I use .NET events as extension point for aggregate root event replayability. But, can't say I'm loving the concept. Also, I would never say static domain event publisher is "traditional DDD", since I consider that one of the bigger antipatterns, at least when running on top of transactional DB. > consignee.Created += > (s, e) => deferred.Enlist(() => Bus.Publish(e)); The issue with this code (except static Bus.Publish) is that event is tied to the instance. Not sure when this would be useful. Regards, Rikard -- Rikard Pavelic https://dsl-platform.com/ http://templater.info/ ------------------------------------ Posted by: Rikard Pavelic <[email protected]> ------------------------------------ ------------------------------------ Yahoo Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/domaindrivendesign/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/domaindrivendesign/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo Groups is subject to: https://info.yahoo.com/legal/us/yahoo/utos/terms/