Skip to content

Domain events fired before saved to database? #971

Answered by neozhu
ppslde asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ppslde,

I understand your concern. I've adjusted the process: for DeleteEvent, the DispatchDomainEvents first; for other events, it's done after saving to the database. Hope this helps.
src/Infrastructure/Persistence/Interceptors/DispatchDomainEventsInterceptor.cs

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ppslde
Comment options

Answer selected by ppslde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants