C# Class Brunet.Messaging.MultiSource

Provides multiple subscribers of an ISource.
Inheritance: ISource
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_subs System.Collections.ArrayList
_sync Object

Méthodes publiques

Méthode Description
Announce ( MemBlock b, ISender return_path ) : int

Calls Handle on all IDataHandlers subscribed.

MultiSource ( ) : System

Initializes a MultiSource

Subscribe ( IDataHandler h, object state ) : void

Subscribes the out going data from this source to the specified handler.

Unsubscribe ( IDataHandler h ) : void

Unsubscribes the the IDataHandler if it is the current IDatahandler.

Method Details

Announce() public méthode

Calls Handle on all IDataHandlers subscribed.
public Announce ( MemBlock b, ISender return_path ) : int
b Brunet.Util.MemBlock The data being passed.
return_path ISender
Résultat int

MultiSource() public méthode

Initializes a MultiSource
public MultiSource ( ) : System
Résultat System

Subscribe() public méthode

Subscribes the out going data from this source to the specified handler.
public Subscribe ( IDataHandler h, object state ) : void
h IDataHandler
state object Data that the subscriber wants passed to the handler on each call.
Résultat void

Unsubscribe() public méthode

Unsubscribes the the IDataHandler if it is the current IDatahandler.
public Unsubscribe ( IDataHandler h ) : void
h IDataHandler
Résultat void

Property Details

_subs protected_oe property

A list of all the subscribers.
protected ArrayList,System.Collections _subs
Résultat System.Collections.ArrayList

_sync protected_oe property

A lock to allow for multithreaded operations.
protected Object _sync
Résultat Object