C# Class Brunet.Messaging.Subscriber

Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
Handler IDataHandler
State object

Méthodes publiques

Méthode Description
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.

Method Details

Equals() public méthode

Can look up subscriptions based only on Handler equality.
public Equals ( object o ) : bool
o object The object to compare for equality.
Résultat bool

GetHashCode() public méthode

Returns the Handlers hashcode.
public GetHashCode ( ) : int
Résultat int

Handle() public méthode

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.
Résultat void

Subscriber() public méthode

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.
Résultat System

Property Details

Handler public_oe property

The handler of the subscriber who will receive data.
public IDataHandler Handler
Résultat IDataHandler

State public_oe property

Data that the subscriber wants passed to the handler on each call.
public object State
Résultat object