Class Message<T>
Message envelope.
public class Message<T>
Type Parameters
T
Data type.
- Inheritance
-
objectMessage<T>
Constructors
Message()
public Message()
Message(T)
public Message(T data)
Parameters
data
T
Message(T, IDictionary<string, string>)
public Message(T data, IDictionary<string, string> properties)
Parameters
data
Tproperties
IDictionary<string, string>
Properties
CorrelationId
Correlation Id - sefaults to the same as the primary Id.
public string CorrelationId { get; set; }
Property Value
Data
Message Data.
public T Data { get; set; }
Property Value
- T
DataContentType
Message content type. Not currently used.
public string DataContentType { get; }
Property Value
DataType
Assembly qualified type name of the Message Data.
public string DataType { get; }
Property Value
Id
Message Id - defaults to a generated GUID.
public string Id { get; set; }
Property Value
Properties
Additional user-defined Message properties.
public IDictionary<string, string> Properties { get; set; }
Property Value
Time
Message timestamp.
public DateTime Time { get; set; }