Table of Contents

Interface IAotProjectionGenerationReaderFactory<TProjection>

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

Optional capability for exact-destination reads using generated JSON metadata without reflective fallback.

public interface IAotProjectionGenerationReaderFactory<TProjection> where TProjection : class

Type Parameters

TProjection

The read schema.

Remarks

Every opened handle must preserve the originating outer store's tenant and encryption boundaries, enforce exactly its IProjectionTenantBoundary, and reject operations if that boundary changes during the handle's lifetime. Selecting another destination must never widen a partitioned store to estate-wide access.

Methods

OpenReader(string, JsonTypeInfo<TProjection>)

Opens a read-only handle bound to the supplied generated serializer.

IProjectionGenerationReader<TProjection> OpenReader(string destinationIdentity, JsonTypeInfo<TProjection> typeInfo)

Parameters

destinationIdentity string

The exact canonical destination from a durable generation pointer.

typeInfo JsonTypeInfo<TProjection>

Generated metadata for a schema compatible with this destination and its query fields.

Returns

IProjectionGenerationReader<TProjection>

A handle to that destination.