Interface IEventUpcasterPipeline
- Namespace
- Stratara.Abstractions.EventSourcing
- Assembly
- Stratara.Abstractions.dll
Applies the registered IEventUpcaster chain to a persisted event payload on read, before the payload is resolved to a runtime type and deserialized. Consumed by the event-mapping layer; a host with no upcasters registered gets a transparent pass-through.
public interface IEventUpcasterPipeline
- Extension Methods
Remarks
Implementations resolve upcasters by SourceEventTypeName (version- independent match) and apply them in sequence — the target of one hop becomes the source lookup for the next — until no upcaster matches the current type name.
Methods
Upcast(string, string)
Runs the upcaster chain for a single persisted event.
UpcastedEvent Upcast(string eventTypeName, string dataJson)
Parameters
eventTypeNamestringThe event type name as persisted in the event row.
dataJsonstringThe event payload as persisted (JSON).
Returns
- UpcastedEvent
The effective type name and payload after upcasting. When no upcaster matches, the inputs are returned unchanged.
Exceptions
- InvalidOperationException
The upcaster chain is cyclic.