Release v22.1.0
Summary
Adds the possibility to take upon a specific projection read model as a dependency and use that to get the projection states for that read model type.
Added
IProjectionOf<TReadModel>that acts as a minimalIProjectionStorefor a particular projection type.IProjectionStore.of<TReadModel>(...)method with overloads for sending inProjectionIdandScopeIdto create instances ofIProjectionOf<TReadModel>IProjectionOf<TReadModel>is registered in the tenant scoped service providers for all types with the[Projection]attribute, or projections created in the.WithProjections(...)builder. So they can be injected in controllers etc.IProjectionOf.for(type)that returns a service identifier that can be used in@inject(...)decorators.IAggregateOf.for(type)that returns a service identifier that can be used in@inject(...)decorators.