Table of Contents

Class AggregateRepresentationValidator<T>

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

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

value T

The domain value.

variantKey string

Optional variant key (e.g., encoding, language, projection ID).

Returns

EntityTagValue

The entity tag for this specific representation.