CommandAggregate
Represents a command aggregate that processes commands and manages state transitions.
A command aggregate subscribes to command messages, validates business rules using the current state from the state aggregate, and publishes domain events. It coordinates between command processing and state management.
Key responsibilities:
Subscribe to command messages
Validate business rules using state aggregate's current state
Publish domain events
Parameters
The type of the command aggregate root.
The type of the state aggregate.
Inheritors
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 for this aggregate instance.
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.