Class Message<T>
Message envelope.
public class Message<T>
Type Parameters
T
Data type.
- Inheritance
-
Message<T>
Constructors
Message()
public Message()
Message(T)
public Message(T item)
Parameters
item
T
Message(T, IDictionary<string, string>)
public Message(T item, IDictionary<string, string> properties)
Parameters
item
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
Message Data type.
public Type 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; }