[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Add emitted event listener for the specified channel, or the default channel if the channel value is null. The listener will be invoked when an event is emitted on the subscribed channel. Listeners subscribed to the default channel are invoked for all emitted events regardless of what channel the event is emitted onto.

Namespace: net.esper.emit
Assembly:   NEsper (in NEsper.dll)

Syntax

Visual Basic (Declaration)
Sub AddListener ( _
	listener As EmittedListener, _
	channel As String _
)
C#
void AddListener (
	EmittedListener listener,
	string channel
)
Visual C++
void AddListener (
	EmittedListener^ listener, 
	String^ channel
)

Parameters

listener
net.esper.client.EmittedListener
is the callback to receive when events are emitted
channel
System.String
is the channel to listen to, with null values allowed to indicate the default channel