c# - Domain event being executed after transaction completes. How to get the concrete type. -


i wanted publish domain event after transaction completes. have followed article here: http://www.jayway.com/2013/06/20/dont-publish-domain-events-return-them/ , had @ post: should pass repository domain method fires event

makes sense... confused how resolve interface collection concrete types. example in collection of ievent there maybe 2-3 different types of events. how figure out event added fire correct handler?

i found answer in comment of following post: http://lostechies.com/jimmybogard/2014/05/13/a-better-domain-events-pattern/ i.e.

domainevents.raise((dynamic) event)


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -