InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

StableEvents

Posted under .NET Tools | Comments (0)

Description

The events within the .NET framework have a severe drawback: If multiple objects have subribed to an event and one subscriber throws an exception, all subsequent subribers are not notified of the event. This is especially true for events used within the remoting framework: If a connection is broken between a event provider and a subscriber, a TargetInvocationException is thrown when the event is invoked.
This class solves this problem by manually invoking each subscriber. All failed notifications are returned to the sender, which in turn can remove the failed subscribers from the list.

Downloads


Technorati:

Posted by Henning Krause on Sunday, January 2, 2005 2:10 PM, last modified on Sunday, January 2, 2005 2:20 PM
Permalink | Post RSSRSS comment feed