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.
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 NamedAggregate with the specified parameters.
Creates an AggregateId for this AggregateMetadata 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.
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.
Converts this NamedAggregate to its string representation.
Converts this NamedAggregate to a string representation using the context alias.