SimpleCommandAggregate

constructor(state: StateAggregate<S>, commandRoot: C, eventStore: EventStore, metadata: CommandAggregateMetadata<C>)

Parameters

C

The type of the command aggregate root.

S

The type of the state aggregate.

eventStore

The event store for persisting domain events.

metadata

The metadata describing this command aggregate's configuration.