Constructor Message
Message(Object, Nullable<TimeSpan>)
Initializes an instance of class Message.
Declaration
public Message(object payload, TimeSpan? timeSpan = default(TimeSpan? ))
Parameters
Type | Name | Description |
---|---|---|
System.Object | payload | This property specifies the payload of the message. |
System.Nullable<System.TimeSpan> | timeSpan | A constant value that indicates that messages have been added into the cache without expiry. |