AggregateMetadata
Represents the metadata for an aggregate, combining state and command aggregate metadata.
This data class encapsulates all the metadata required to work with an aggregate, including its named aggregate information, static tenant ID, state aggregate metadata, and command aggregate metadata. It provides utilities for extracting aggregate IDs and determining if the aggregate follows an aggregation pattern.
Type Parameters
The type of the command aggregate.
The type of the state aggregate.
Constructors
Creates a new AggregateMetadata with the specified named aggregate, tenant ID, and metadata.
Properties
The metadata for the command aggregate.
Determines if this aggregate follows an aggregation pattern where state and command aggregates are different types.
The named aggregate that this metadata belongs to.
The metadata for the state aggregate.
The static tenant ID configured for this aggregate, or null if not configured.
Functions
Creates an AggregateId for this AggregateMetadata with the specified parameters.