Class ProjectionServiceCollectionExtensions
- Namespace
- Opossum.Projections
- Assembly
- Opossum.dll
Extension methods for configuring projection services
public static class ProjectionServiceCollectionExtensions
- Inheritance
-
ProjectionServiceCollectionExtensions
- Inherited Members
Methods
AddProjectionStore<TState>(IServiceCollection, string)
Manually registers a projection store for a specific state type. Use this when the projection definition is not discoverable via assembly scanning (e.g., file-scoped types in tests).
public static IServiceCollection AddProjectionStore<TState>(this IServiceCollection services, string projectionName) where TState : class
Parameters
servicesIServiceCollectionThe service collection
projectionNamestringThe name of the projection
Returns
- IServiceCollection
The service collection for chaining
Type Parameters
TStateThe projection state type
AddProjections(IServiceCollection, Action<ProjectionOptions>?)
Adds projection services to the dependency injection container
public static IServiceCollection AddProjections(this IServiceCollection services, Action<ProjectionOptions>? configure = null)
Parameters
servicesIServiceCollectionThe service collection
configureAction<ProjectionOptions>Optional configuration action for ProjectionOptions
Returns
- IServiceCollection
The service collection for chaining