Class CloudEventMessage
- Namespace
- Excalibur.Dispatch.CloudEvents
- Assembly
- Excalibur.Dispatch.dll
Simple message wrapper for CloudEvent data conversion.
[MessageName("Excalibur.Dispatch.CloudEventMessage")]
public sealed class CloudEventMessage : IDispatchEvent, IDispatchMessage
- Inheritance
-
CloudEventMessage
- Implements
- Inherited Members
- Extension Methods
Remarks
A CloudEvent is, by its own specification, a record that something happened; there is no reading under which it is a command. It is classified explicitly rather than left unclassifiable, so it never depends on a default to decide which middleware protects it.
Constructors
CloudEventMessage()
Initializes a new instance of the CloudEventMessage class.
public CloudEventMessage()
Properties
Body
public object Body { get; }
Property Value
Data
Gets or sets the CloudEvent data.
public object? Data { get; set; }
Property Value
Features
public IMessageFeatures Features { get; }
Property Value
Headers
public IReadOnlyDictionary<string, object> Headers { get; }
Property Value
Id
public Guid Id { get; }
Property Value
MessageId
Gets or sets the CloudEvent ID.
public string MessageId { get; set; }
Property Value
MessageType
public string MessageType { get; }
Property Value
Timestamp
public DateTimeOffset Timestamp { get; set; }
Property Value
Type
Gets or sets the CloudEvent type.
public string Type { get; set; }