ITopicTAddMessageListener Method (IMessageListenerT)Hazelcast .Net Client Class Library
Subscribes to this topic.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
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

Reference