As the system implementation getting bigger, It may be hard to spot/fix important function. Therefore, we came up with an idea of using Domain Events to organize each function explicitly. As you may know, domain event is a simple class that constitute event in domain.
For the understanding, I go through some example and article regarding domain events. After that, I try out the implementation on my actual project. As my project is using Unity container, It is a bit differ from most examples on the internet (mostly structure maps). With few trials here and there for unity, my wrapper service class does directed to the event class, however it skip the event handler. Thus, nothing is trigger upon the button that I clicked and error prompted.
I then proceed the implementation based on various example that uses structure maps. After setting up the implementation, same thing occurs. Despite altering multiple declaration, system still unable to run as what we wanted. Even though it is said to be a great organized implementation, but it is still hard for me on how to implement domain event. In conclusion, domain events is yet suitable for me to apply in my actual project, thus, I have to look into other options available.
