Skip to main content
Table of Contents

Class EventBundleMapper

Namespace
Stratara.Shared.EventSourcing.Mapping
Assembly
Stratara.Shared.dll

Conversion helpers that fold a batch of persisted EventStreamEntry rows together with the originating SessionContext into a wire-level EventBundle suitable for outbox / message-bus transport.

public static class EventBundleMapper
Inheritance
EventBundleMapper
Inherited Members

Methods

MapToEventBundle(IEnumerable<EventStreamEntry>, SessionContext)

Maps a sequence of EventStreamEntry rows to a single EventBundle, embedding the supplied SessionContext as serialized JSON.

public static EventBundle MapToEventBundle(this IEnumerable<EventStreamEntry> entries, SessionContext sessionContext)

Parameters

entries IEnumerable<EventStreamEntry>

The persisted event-stream rows to wrap.

sessionContext SessionContext

Session context to embed for handler-side replay.

Returns

EventBundle

An EventBundle carrying the converted EventMessage list and session JSON.