开发者

Implementation of Event Aggregator in asp.net

I want to use Event Aggregator to开发者_JAVA百科 allow communication between presenters on the page. I am using currently this implementation http://kentb.blogspot.com/2008/03/event-hub.html.

But in asp.net I am not sure about side effects which can occur.


The only side effects I see is that your presenters will have to contain an EventHub and expose method to subscribe and unsubscribe to events. They will also have to implement the ISubscriber interface. Since this interface is generic you will have to mention ISubscriber for each event T you want to them to receive in the class definition which can be very tedious if you want to receive a lot of events.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜