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
Post a Comment