asAggregateMetadata

Converts this NamedAggregate to its corresponding AggregateMetadata.

If this named aggregate is already an AggregateMetadata instance, it returns itself cast appropriately. Otherwise, it looks up the required aggregate type and parses its metadata.

Return

The aggregate metadata for this named aggregate.

Parameters

C

The command aggregate type.

S

The state aggregate type.