-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: implementation #1
Comments
@bsommardahl , I also miss IBlingInitializer and sample implementation, mentioned in this article: http://awkwardcoder.com/2012/08/28/nhibernate-lazy-loading-blingbag/ (I am interested in situation where Lazy loading and NHibernate is irrelevant and fully initialized entities are retrieved from the repository). |
@zygimantas If you are triggering events from command handlers, then I would consider BlingBag the best way to do it. Most of the implementations of domain events use messy static classes. BlingBag uses normal c# events and handlers. On the other hand, if you're triggering domain events using event sourcing, I would not use BlingBag. Blingbag is still used in production and is implemented into new projects all the time. I know I don't maintain the code very often... that's true. :( But the project is still viable and in use. I just checked on |
Thanks @bsommardahl I am planning to raise events from command methods inside domain entities without using event sourcing. I will be looking forward for your update, because this missing part prevents to see the complete picture. |
@bsommardahl any success finding the source? |
Yes. I believe it was removed because it was no longer needed. The job of Assume your command handlers all have an event on them called NotifyObervers += domainEvent => _blingDispatcher.Dispatch(domainEvent); That's all there is to it. Feel free to reply with more questions. I'll be
Acklen Avenue is a custom software development company committed |
Hi, a lot of time passed after the creation of this project. Do you still consider it is the most elegant way to implement domain events with c#? Do you have any other updates or recommendations? Thanks in advance.
The text was updated successfully, but these errors were encountered: