Non-Generic CompositePresentationEvent and EventSu

2019-07-27 03:20发布

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?

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-07-27 03:52

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.

查看更多
太酷不给撩
3楼-- · 2019-07-27 04:02

For logging and handling roles and permissions around the application and sub modules it's best to use Interfaces instead of event aggregation system.

查看更多
登录 后发表回答