Table of Contents

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

services IServiceCollection

The service collection

projectionName string

The name of the projection

Returns

IServiceCollection

The service collection for chaining

Type Parameters

TState

The 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

services IServiceCollection

The service collection

configure Action<ProjectionOptions>

Optional configuration action for ProjectionOptions

Returns

IServiceCollection

The service collection for chaining