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

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Handler IDataHandler
State object

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

Метод Описание
Equals ( object o ) : bool

Can look up subscriptions based only on Handler equality.

GetHashCode ( ) : int

Returns the Handlers hashcode.

Handle ( MemBlock b, ISender retpath ) : void

This is called to pass data to the subscribed handler.

Subscriber ( IDataHandler dh, object state ) : System

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

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

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

Can look up subscriptions based only on Handler equality.
public Equals ( object o ) : bool
o object The object to compare for equality.
Результат bool

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

Returns the Handlers hashcode.
public GetHashCode ( ) : int
Результат int

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

This is called to pass data to the subscribed handler.
public Handle ( MemBlock b, ISender retpath ) : void
b Brunet.Util.MemBlock The data being passed.
retpath ISender A sender which can send data back to the source of B.
Результат void

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

Subscribes the out going data from this source to the specified handler.
public Subscriber ( IDataHandler dh, object state ) : System
dh 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.
Результат System

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

Handler публичное свойство

The handler of the subscriber who will receive data.
public IDataHandler Handler
Результат IDataHandler

State публичное свойство

Data that the subscriber wants passed to the handler on each call.
public object State
Результат object