DomainEventStream
Domain Event Stream interface representing a sequence of domain events.
A domain event stream contains a collection of domain events that were generated as a result of a single command execution. The relationship is 1:1 between event streams and command IDs.
Key requirements:
Events must be sorted in ascending order by version number
Version numbers must be monotonically increasing
All events in a stream belong to the same aggregate
Events are immutable once created
See also
Inheritors
Properties
Functions
Creates an AggregateId for this NamedAggregate with the specified parameters.
Finds the aggregate type class associated with this named aggregate.
Converts this NamedAggregate to its corresponding AggregateMetadata.
Generates a unique ID string for this NamedAggregate.
Gets the context alias prefix for this bounded context.
Determines if this event stream should be ignored during event sourcing.
Checks if the named aggregate is available locally at runtime.
Checks if this message matches the given function for compensation purposes.
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Finds the aggregate type class associated with this named aggregate, throwing an exception if not found.
Extension function to convert a NamedAggregate to an EventNamedAggregate.
Computes a grouping key for parallel processing based on the aggregate ID.
Converts this NamedAggregate to its string representation.
Converts a DomainEventStream to a StateEvent using the state from a ReadOnlyStateAggregate.
Converts a DomainEventStream to a StateEvent with the given state.
Converts this NamedAggregate to a string representation using the context alias.