SimpleCommandAggregateFactory
Factory for creating SimpleCommandAggregate instances.
This factory handles the creation of command aggregates, taking into account whether the aggregate follows an aggregation pattern (separate command and state aggregates).
Parameters
eventStore
The event store to be used by created command aggregates.
Functions
Link copied to clipboard
open override fun <C : Any, S : Any> create(metadata: AggregateMetadata<C, S>, stateAggregate: StateAggregate<S>): CommandAggregate<C, S>
Creates a new SimpleCommandAggregate instance.