C# 클래스 NATS.Client.AsyncSubscription

An object of this class is an asynchronous subscription representing interest in a subject. The subject can have wildcards (partial:*, full:>). Messages will be delivered to the associated MsgHandler event delegates. While nothing prevents event handlers from being added or removed while processing messages, no messages will be received until Start() has been called. This allows all event handlers to be added before message processing begins.
See MsgHandler.
상속: Subscription, IAsyncSubscription, ISubscription
파일 보기 프로젝트 열기: nats-io/csnats 1 사용 예제들

공개 메소드들

메소드 설명
AutoUnsubscribe ( int max ) : void
Start ( ) : void
Unsubscribe ( ) : void

보호된 메소드들

메소드 설명
processMsg ( Msg msg ) : bool

비공개 메소드들

메소드 설명
AsyncSubscription ( Connection conn, string subject, string queue ) : System
close ( ) : void
disableAsyncProcessing ( ) : void
enableAsyncProcessing ( ) : void
isStarted ( ) : bool

메소드 상세

AutoUnsubscribe() 공개 메소드

public AutoUnsubscribe ( int max ) : void
max int
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Unsubscribe() 공개 메소드

public Unsubscribe ( ) : void
리턴 void

processMsg() 보호된 메소드

protected processMsg ( Msg msg ) : bool
msg Msg
리턴 bool