Skip to content

Release v22.33.1

Choose a tag to compare

@github-actions github-actions released this 29 Sep 11:30
d69189d

Changed

  • Query paging, counting and sorting, and read model interception, call typed generic helpers instead of building Queryable and interceptor calls through reflection, which trimming and NativeAOT cannot follow. The trim/AOT baseline drops from 674 to 625 diagnostics (Refs #2855, Refs #2856)
  • An open generic read model interceptor must implement IInterceptReadModel<T> over its own type parameter; any other shape now fails at startup with OpenGenericReadModelInterceptorMustInterceptItsTypeParameter naming the type. Such an interceptor already made every query fail (Refs #2856)

Fixed

  • An interceptor class that implements IInterceptReadModel<T> for more than one read model now intercepts each of them; before, only the first interface found was used. If such a class is also registered in DI for one of those read models, the discovered type is now used for it instead of the registered instance (Refs #2856)

Exceptions thrown synchronously by an interceptor or by Skip/Take are no longer wrapped in TargetInvocationException; query results are unchanged.

Reviewed with Anthropic models only (no cross-provider review available right now).