createEventExchange
open override fun StateEventExchange<*>.createEventExchange(event: DomainEvent<*>): DomainEventExchange<*>
Creates a state domain event exchange from a state event exchange and domain event.
This method wraps a domain event in a SimpleStateDomainEventExchange, providing access to the aggregate state and copying attributes from the parent exchange.
Return
A new SimpleStateDomainEventExchange containing the event and state
Parameters
event
The domain event to create an exchange for