Click or drag to resize

ITopicTAddMessageListener Method (IMessageListenerT)

Subscribes to this topic.

Namespace:  Hazelcast.Core
Assembly:  Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax
string AddMessageListener(
	IMessageListener<T> listener
)

Parameters

listener
Type: Hazelcast.CoreIMessageListenerT

Return Value

Type: String
returns registration id.
Remarks
Subscribes to this topic. When someone publishes a message on this topic. onMessage() function of the given IMessageListener is called. More than one message listener can be added on one instance.
See Also