Table of Contents

Class Message<T>

Namespace
JobFlow.Models.Messages
Assembly
JobFlow.Models.dll

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 T
properties IDictionary<string, string>

Properties

CorrelationId

Correlation Id - sefaults to the same as the primary Id.

public string CorrelationId { get; set; }

Property Value

string

Data

Message Data.

public T Data { get; set; }

Property Value

T

DataContentType

Message content type. Not currently used.

public string DataContentType { get; }

Property Value

string

DataType

Message Data type.

public Type DataType { get; }

Property Value

Type

Id

Message Id - defaults to a generated GUID.

public string Id { get; set; }

Property Value

string

Properties

Additional user-defined Message properties.

public IDictionary<string, string> Properties { get; set; }

Property Value

IDictionary<string, string>

Time

Message timestamp.

public DateTime Time { get; set; }

Property Value

DateTime