You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all I want to thank you for the good work you have done with this repository, from which I am learning a lot.
Based on your example and as a learning method, I have made my own project. After getting everything working correctly, I notice that the "DispatchEventsAsync" method is called twice from two different points;
1.- When we do the Savechanges(): At this moment, when we do the _mediator.Publish(domainEvent) inside the DispatchEventsAsync() method
2.- Subsequently, the DomainEventsDispatcherNotificationHandlerDecorator is launched, which launches the DispatchEventsAsync() method again, processing it twice.
Is there any explanation for that?
Thank you very much in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, first of all I want to thank you for the good work you have done with this repository, from which I am learning a lot.
Based on your example and as a learning method, I have made my own project. After getting everything working correctly, I notice that the "DispatchEventsAsync" method is called twice from two different points;
1.- When we do the Savechanges(): At this moment, when we do the _mediator.Publish(domainEvent) inside the DispatchEventsAsync() method
2.- Subsequently, the DomainEventsDispatcherNotificationHandlerDecorator is launched, which launches the DispatchEventsAsync() method again, processing it twice.
Is there any explanation for that?
Thank you very much in advance.
Beta Was this translation helpful? Give feedback.
All reactions