Skip to content

Release v22.24.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 09:27
08594f7

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 an ICurrentPrincipalAccessor registered in Services, as with CommandScenario. (#2762)

  • IQueryScenarioExtender is a seam for extending query scenarios. Cratis.Arc.Chronicle.Testing uses 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 Perform returns.

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.