C# 클래스 Brunet.Messaging.Subscriber

파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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