Repository navigation
Release v22.24.0
Added
-
QueryScenario<TReadModel>runs model-bound snapshot queries in-process through the same hosted pipeline as the HTTP endpoint, including argument conversion, authorization, validation, interceptors and owned query scopes. The principal comes from anICurrentPrincipalAccessorregistered inServices, as withCommandScenario. (#2762) -
IQueryScenarioExtenderis a seam for extending query scenarios.Cratis.Arc.Chronicle.Testinguses it to seed read models and event history for Chronicle-backed queries, including other read model types the query reads. -
Query scenarios materialize lazy results that depend on scoped services before releasing the query scope, so the result stays readable after
Performreturns.
Streaming (observable) queries are rejected with StreamingQueryNotSupported before the query method runs. Queries restricted to an authentication scheme fail closed in-process, because scheme selection needs a live HTTP context.