问题
I am trying to create a TPayLoad-free CompositePresentationEvent, that its delegate is parameterless.
I want to have a global application event that takes no parameters such as UserLoggedInEvent, UserGotIdleEvent etc. etc.
How should this be done with the Prism 4.0 event aggregation system?
回答1:
This post clarified some things for me.
Anyway I realize now the the Prism EA system is really clumzy tho.
Here are some extension methods that focus on reducing the verbosity of the EA.
回答2:
For logging and handling roles and permissions around the application and sub modules it's best to use Interfaces instead of event aggregation system.
来源:https://stackoverflow.com/questions/5590007/non-generic-compositepresentationevent-and-eventsubscription