Class MessageEventArgs
Arguments containing details of the received message including the topic, sender and type.
Inheritance
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class MessageEventArgs : EventArgs
Constructors
MessageEventArgs(IMessage, DeliveryOption, ITopic, String)
This constructor of class MessageEventArgs creates an instance of class with message to be delivered, DeliveryOption, topic to which message belongs, and the topic on which message is published.
Declaration
public MessageEventArgs(IMessage message, DeliveryOption deliverOption, ITopic messageTopic, string topicName)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | Message to be delivered. |
DeliveryOption | deliverOption | How message should be delivered. |
ITopic | messageTopic | Topic to which message belongs. |
System.String | topicName | Topic on which message is published. |
Properties
DeliveryOption
This property specifies how message should be delivered.
Declaration
public DeliveryOption DeliveryOption { get; }
Property Value
Type | Description |
---|---|
DeliveryOption | Specifies the delivery option for message. |
Message
A message contains the actual data object which is sent by the publisher and delivered to the interested subscribers for the topic. NCache provides the Message class which implements the IMessage interface to create a message.
Declaration
public IMessage Message { get; }
Property Value
Type | Description |
---|---|
IMessage | The actual data object which is sent by the publisher and delivered to the interested subscribers for the topic. |
Topic
This property specifies the topic to which the message belongs.
Declaration
public ITopic Topic { get; }
Property Value
Type | Description |
---|---|
ITopic | Topic to which the message belongs. |
TopicName
This property specifies the topic name on which the message is published.
Declaration
public string TopicName { get; }
Property Value
Type | Description |
---|---|
System.String | The topic name on which the message is published. |