MVVMLight - 消息传递,是否可以将发送者和发送者的生命周期解耦?接收者?

发布于 2024-10-07 20:21:45 字数 198 浏览 0 评论 0原文

在 MVVMLight 中使用 Messenger 类时,在发送消息之前,需要至少存在并设置两个端点(发送者和接收者)(在接收者的情况下已注册)。

我想要的是能够打破这种耦合,因此在注册时我可以声明我希望收到关于某个主题发送的最后一条消息的通知。

(劳伦特)目前这可能吗?

如果不是,我可以从 Messenger 派生并自己实现吗?

When using the Messenger class in MVVMLight it requires the a minimum of two endpoints (sender and receivers) to be in existence and setup (registered in the case of receiver) before a message is sent.

What I would like is the ability to break this coupling, so at registration I can declare I want to be notified of the last message sent on a topic.

(Laurent) is this possible at the moment?

If not I take it I could derive off Messenger and implement this my self?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半暖夏伤 2024-10-14 20:21:45

我们编写了一个并将其作为 WP7Contrib 的一部分提供,它可以在 Messaging 项目中找到。

We wrote one and provided it as part of the WP7Contrib, it can be found in the Messaging project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文