SimpleCommandAggregate
Simple implementation of CommandAggregate that handles command processing with state management.
This class coordinates between command execution, state aggregation, and event storage. It manages the command processing lifecycle including validation, execution, event sourcing, and persistence.
Parameters
The type of the command aggregate root.
The type of the state aggregate.
The event store for persisting domain events.
The metadata describing this command aggregate's configuration.
Constructors
Properties
The command aggregate root instance.
The current state of command processing.
The associated state aggregate containing the current state.
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.
Checks if the named aggregate is available locally at runtime.
Materializes this NamedAggregate into a MaterializedNamedAggregate.
Processes a command exchange by validating, executing, and persisting the results.
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 this NamedAggregate to a string representation using the context alias.