Table of Contents

Interface IMigrationRecord

Namespace
Excalibur.Dispatch.Serialization
Assembly
Excalibur.Dispatch.dll

Represents a record that can be migrated between serialization formats.

public interface IMigrationRecord
Extension Methods

Remarks

This interface provides a store-agnostic view of records for migration purposes. Each store implementation (Outbox, Inbox, EventStore) should provide migration record adapters that implement this interface.

Properties

Id

Gets the unique identifier of the record.

string Id { get; }

Property Value

string

Remarks

For Outbox/Inbox: typically a GUID or long. For EventStore: could be a composite of StreamId + Version.

Payload

Gets the serialized payload bytes including the magic byte header.

byte[] Payload { get; }

Property Value

byte[]

TypeName

Gets the CLR type name of the serialized message, if available.

string? TypeName { get; }

Property Value

string

Remarks

Used for deserializing the message to the correct type. May be null if type information is not stored with the record.