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
entriesIEnumerable<EventStreamEntry>The persisted event-stream rows to wrap.
sessionContextSessionContextSession context to embed for handler-side replay.
Returns
- EventBundle
An EventBundle carrying the converted EventMessage list and session JSON.