ositePresentationEvent和EventSubs

ositePresentationEvent和EventSubs

本文介绍了非通用CompositePresentationEvent和EventSubscription?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建不带TPayLoadCompositePresentationEvent,它的委托是无参数的.

I am trying to create a TPayLoad-free CompositePresentationEvent, that its delegate is parameterless.

我希望有一个不带任何参数的全局应用程序事件,例如UserLoggedInEventUserGotIdleEvent等.

I want to have a global application event that takes no parameters such as UserLoggedInEvent, UserGotIdleEvent etc. etc.

如何使用Prism 4.0事件聚合系统完成此操作?

How should this be done with the Prism 4.0 event aggregation system?

推荐答案

这篇帖子为我澄清了一些事情.
无论如何,我现在意识到Prism EA系统真的很笨拙.

This post clarified some things for me.
Anyway I realize now the the Prism EA system is really clumzy tho.

此处是一些扩展方法,致力于减少EA的冗长性.

Here are some extension methods that focus on reducing the verbosity of the EA.

这篇关于非通用CompositePresentationEvent和EventSubscription?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 10:55