i'm looking using ddd sample application, i'm stuck on domain events. since there pretty eventdispatchers out there don't want reinvent wheel. these implementations require events implementing eventinterface. want keep implementation of domain events seperate kind of implementation. how should approach problem?
two possibilities can think of
1) introduce idea of adapter in front of eventdispatcher; adapter accepts events in format produced domain, , "serializes" same data form required specific dispatcher implementation using.
2) create domain events using builder api; domain defines builder contract, implementation under covers specific event dispatcher using.
Comments
Post a Comment