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

Holds a single subscriber per a source.
Наследование: ISource
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
_sub Subscriber
_sync Object

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

Метод Описание
Handle ( MemBlock b, ISender retpath ) : void
SimpleSource ( ) : System

Initializes the SimpleSource

Subscribe ( IDataHandler hand, object state ) : void

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

Unsubscribe ( IDataHandler hand ) : void

Unsubscribes the the IDataHandler if it is the current IDatahandler.

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

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

public Handle ( MemBlock b, ISender retpath ) : void
b Brunet.Util.MemBlock
retpath ISender
Результат void

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

Initializes the SimpleSource
public SimpleSource ( ) : System
Результат System

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

Subscribes the out going data from this source to the specified handler.
public Subscribe ( IDataHandler hand, object state ) : void
hand IDataHandler Data that the subscriber wants passed to the handler on each call.
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 hand ) : void
hand IDataHandler An IDataHandler that wishes to remove itself as a destination for data coming from this source.
Результат void

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

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

protected Subscriber,Brunet.Messaging _sub
Результат Subscriber

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

Lock to support multithreaded operations.
protected Object _sync
Результат Object