Non-Generic CompositePresentationEvent and EventSubscription?

China☆狼群 提交于 2019-12-24 05:51:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!