How ISubject and Subject will look like in this sample and are the sample using them in the right place?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 07:23:38

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3439419/how-isubject-and-subject-will-look-like-in-this-sample-and-are-the-sample-using

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