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
Hi, I am working on the project which required to wrap all processing step from the same request in transaction.
However, I found all domain event attached to the entity will be published right after I call any repository method (e.g. AddAsyc).
I am wondering if there is any way I can adjust the timing of when the domain event should be published and also the most importent is this the common practice to do so, since for my point of view, the domain event should be the fact of thing happened, which if the transaction rollback will have confilt to it.
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
-
Hi, I am working on the project which required to wrap all processing step from the same request in transaction.
However, I found all domain event attached to the entity will be published right after I call any repository method (e.g. AddAsyc).
I am wondering if there is any way I can adjust the timing of when the domain event should be published and also the most importent is this the common practice to do so, since for my point of view, the domain event should be the fact of thing happened, which if the transaction rollback will have confilt to it.
Beta Was this translation helpful? Give feedback.
All reactions