C# Класс Brunet.Messaging.MultiSource

Provides multiple subscribers of an ISource.
Наследование: ISource
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_subs System.Collections.ArrayList
_sync Object

Открытые методы

Метод Описание
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.

Описание методов

Announce() публичный Метод

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
Результат int

MultiSource() публичный Метод

Initializes a MultiSource
public MultiSource ( ) : System
Результат System

Subscribe() публичный Метод

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.
Результат void

Unsubscribe() публичный Метод

Unsubscribes the the IDataHandler if it is the current IDatahandler.
public Unsubscribe ( IDataHandler h ) : void
h IDataHandler
Результат void

Описание свойств

_subs защищенное свойство

A list of all the subscribers.
protected ArrayList,System.Collections _subs
Результат System.Collections.ArrayList

_sync защищенное свойство

A lock to allow for multithreaded operations.
protected Object _sync
Результат Object