Class AggregateRepresentationValidator<T>
Default representation validator for aggregates. Uses the aggregate's built-in ETag. When a variant key is provided, combines it with the ETag using a hash.
public sealed class AggregateRepresentationValidator<T> : IRepresentationValidator<T> where T : IAggregate
Type Parameters
T
- Inheritance
-
AggregateRepresentationValidator<T>
- Implements
- Inherited Members
- Extension Methods
Methods
GenerateETag(T, string?)
Generates an EntityTagValue for the given value and representation variant.
public EntityTagValue GenerateETag(T value, string? variantKey = null)
Parameters
valueTThe domain value.
variantKeystringOptional variant key (e.g., encoding, language, projection ID).
Returns
- EntityTagValue
The entity tag for this specific representation.