Table of Contents

Namespace Savvyio.Extensions.DependencyInjection.Domain.EventSourcing

Assembly: Savvyio.Extensions.DependencyInjection.Domain.dll

Event-sourced aggregates require a specialized repository that stores and replays traced domain events rather than current state. The Savvyio.Extensions.DependencyInjection.Domain.EventSourcing namespace provides AddTracedAggregateRepository<TService, TEntity, TKey> and the ITracedAggregateRepository marker interface.

Start with AddTracedAggregateRepository<TService, TEntity, TKey> to bind an ITracedAggregateRepository to its implementation. For the EF Core–backed implementation, use Savvyio.Extensions.DependencyInjection.EFCore.Domain.EventSourcing.

Availability: .NET 10 and .NET 9

Extension Members

Type Ext Methods
IServiceCollection ⬇️ AddTracedAggregateRepository<TService, TEntity, TKey>

Classes

ServiceCollectionExtensions

Extension methods for the IServiceCollection interface.

Interfaces

ITracedAggregateRepository<TEntity, TKey, TMarker>

Defines a generic way to support multiple implementations traced read- and writable repositories (CRud) that is optimized for Domain Driven Design.