ISubject 和Subject 在该示例中的外观如何?该示例是否在正确的位置使用了它们?

发布于 2024-09-13 16:11:02 字数 328 浏览 0 评论 0原文

我得到了这个示例 http://jfromaniello.blogspot.com/ 2010/04/event-aggregator-with-reactive.html

它描述了使用.net 4.0的事件聚合器模式,但我在示例代码中没有找到ISubject接口和Subject类,我发现他是在 EventAggregator 类中使用它们,这样使用它们是否正确,它们的代码会是什么样子?

I got this sample http://jfromaniello.blogspot.com/2010/04/event-aggregator-with-reactive.html,

Which describe event aggregator pattern using .net 4.0 but i didn't find in the sample code the ISubject interface and the Subject class and i found the he is using them in the EventAggregator class, is it right to use them like that and what will their code will look like?

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

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

发布评论

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

评论(1

渡你暖光 2024-09-20 16:11:02

我不是 100% 确定你在这里问的是什么 - 你只是在寻找 ISubject 接口和实现吗?如果是这样,您可以从这里获取它们(以及所有 System.Reactive 位):http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx

使用右侧适用于您所使用的任何平台的下载链接。

I'm not 100% sure what you are asking here - are you just looking for the ISubject interface and implementation? If so you can grab them (along with all the System.Reactive bits) from here: http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx

Use the download links on the right for whatever platform(s) you are using.

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