C# Class 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.
Inheritance: Subscription, IAsyncSubscription, ISubscription
Exibir arquivo Open project: nats-io/csnats Class Usage Examples

Public Methods

Method Description
AutoUnsubscribe ( int max ) : void
Start ( ) : void
Unsubscribe ( ) : void

Protected Methods

Method Description
processMsg ( Msg msg ) : bool

Private Methods

Method Description
AsyncSubscription ( Connection conn, string subject, string queue ) : System
close ( ) : void
disableAsyncProcessing ( ) : void
enableAsyncProcessing ( ) : void
isStarted ( ) : bool

Method Details

AutoUnsubscribe() public method

public AutoUnsubscribe ( int max ) : void
max int
return void

Start() public method

public Start ( ) : void
return void

Unsubscribe() public method

public Unsubscribe ( ) : void
return void

processMsg() protected method

protected processMsg ( Msg msg ) : bool
msg Msg
return bool