Interface IMessage
Contains properties required for a message to publish on a topic. Must be implemented by Message.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface IMessage
Properties
CreationTime
Creation time of message.
Declaration
DateTime CreationTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
ExpirationTime
Expiration time provided by user, i.e. message will be expired if no subscriber exists.
Declaration
TimeSpan? ExpirationTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
MessageId
Unique id of message.
Declaration
string MessageId { get; }
Property Value
Type | Description |
---|---|
System.String |
Payload
Payload of message.
Declaration
object Payload { get; }
Property Value
Type | Description |
---|---|
System.Object |