I am using asp.net mvc encoding using DDD. I have objects representing business objects and service repositories that handle fetching and adding them. I am new to this, and as my application grows, I begin to see a lot of secondary code that should run as a result of adding, deleting, or modifying domain objects / data.
I would like to create an event driven system where one action launches other pieces of code to run. For example, when I delete a user, I want to be able to sign a number of other actions for this action, so that all of them will be executed upon removal.
How did you code applications to handle these situations? How can I create a reliable and consistent OO system for my problem? I already know about events and delegates, but I'm more interested in coding methods and good practices.
asp.net-mvc domain-driven-design
Roman
source share