Table of Contents

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

object

Data

Gets or sets the CloudEvent data.

public object? Data { get; set; }

Property Value

object

The current Data value.

Features

public IMessageFeatures Features { get; }

Property Value

IMessageFeatures

Headers

public IReadOnlyDictionary<string, object> Headers { get; }

Property Value

IReadOnlyDictionary<string, object>

Id

public Guid Id { get; }

Property Value

Guid

MessageId

Gets or sets the CloudEvent ID.

public string MessageId { get; set; }

Property Value

string

The current MessageId value.

MessageType

public string MessageType { get; }

Property Value

string

Timestamp

public DateTimeOffset Timestamp { get; set; }

Property Value

DateTimeOffset

Type

Gets or sets the CloudEvent type.

public string Type { get; set; }

Property Value

string

The current Type value.