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
Type Parameters
The type of the command aggregate root.
The type of the state aggregate. The state contains the current aggregate state, commandRoot is the command aggregate root, and commandState tracks the current command-processing state.
Inheritors
Properties
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.