dasiths/NEventLite
41.7
Weak · 8 November 2026
4.9k
lines of production code
C#
primary language
7
measurements over time
What this system is
NEventLite is a .NET library that implements the Event Sourcing pattern, providing a framework for building domain models that track state changes as a sequence of events. It introduces a MasterSession to manage aggregate roots and uncommitted changes, ensuring thread-safe access and versioning. The system supports multiple storage backends, including in-memory, EventStore, and snapshot-based persistence, with integration tests verifying end-to-end workflows. Additionally, it offers dependency injection extensions for Autofac and Microsoft's DI container to simplify application setup.
Features
Add Autofac integration sample with domain model and handlers
Added a new Autofac-based sample project (NEventLite.Samples.Autofac) that demonstrates how to wire up the NEventLite framework using the Autofac dependency injection container. This includes the NEventLiteModule for registration, a custom MyEventPublisher for event logging, and a complete set of domain objects (Schedule, Todo, Snapshots), event classes, and command handlers (CreateSchedule, CreateTodo, UpdateTodoName, CompleteTodo) that utilize the master session pattern.
src/Samples/NEventLite.Samples.Common · medium confidence
Add Autofac sample demonstrating dependency injection
The sample application now includes a new DependencyInjection.cs file that configures the service container using Microsoft.Extensions.DependencyInjection. It demonstrates registering event storage providers (both in-memory and EventStore-based), handlers, and aggregate sessions, providing a concrete example of how to wire up the framework with a DI container.
src/Samples/NEventLite.Samples.ConsoleApp · high confidence
Add DI extensions for Autofac and Microsoft.DependencyInjection
New extension methods are provided for both Autofac and Microsoft's built-in dependency injection containers, enabling automatic registration of the master session, aggregate repositories, and sessions. This simplifies setup by allowing applications to register all aggregates in a single call, with support for both full generic type registration and a convenient GUID-scoped session interface.
src/Extensions · high confidence
Add Schedule aggregate with todo management
A new Schedule aggregate root is introduced in the Samples project, implementing the ISnapshottable interface to manage a list of todos. This domain model supports creating, updating, and completing todos, with event-driven state updates and snapshotting capabilities for persistence.
Samples · high confidence
Introduce master session pattern for aggregate tracking
Added new \AggregateRoot\ and \MasterSession\ classes to implement a master session pattern. The \AggregateRoot\ now tracks uncommitted changes and manages versioning, while the \MasterSession\ provides a centralized way to load, attach, detach, and save aggregates, ensuring thread-safe access via a sync lock.
NEventLite · high confidence
Updated solution file to include Autofac integration samples and extensions
The NEventLite solution file has been updated to include new projects for Autofac integration, specifically \NEventLite.Samples.Autofac\ and \NEventLite.Extensions.Autofac\, alongside other existing projects like the in-memory and EventStore storage providers.
src · high confidence
Behavioural changes
Updated Bootstrap 3.4.1 theme and MVC scaffolding in the NEventLite example
The NEventLite MVC example project has been updated with Bootstrap 3.4.1 theme styles and a new \.ebextensions\ configuration that grants file system permissions for the App\_Data directory. The update also includes the standard ASP.NET MVC 5 scaffolding files, such as \BundleConfig.cs\ for bundling jQuery, Bootstrap, and Modernizr, \RouteConfig.cs\ for default routing, and \FilterConfig.cs\ for global error handling.
legacy/v1.0 · high confidence
Test coverage
Added integration tests for the new MasterSession and end-to-end repository workflows
Added integration tests for the new MasterSession and end-to-end repository workflows. The new EndToEndTests verify that aggregates can be created, modified, and reloaded from both the standard Repository (with snapshots) and the EventOnlyRepository. The MasterSessionTests confirm that the MasterSession correctly routes requests to the appropriate repository and handles invalid aggregate types or missing repositories by throwing ArgumentExceptions.
src/NEventLite · high confidence
Dependencies
NEventLite dependency and project structure updates
This change updates the NEventLite project structure and dependencies. The main framework library targets netstandard2.0 and references Newtonsoft.Json 12.0.3. The Microsoft DI extension targets netstandard2.0 and references Microsoft.Extensions.DependencyInjection 2.2.0. The Autofac extension targets netstandard2.0 and references Autofac 5.1.2. The EventStore storage provider references EventStore.Client 5.0.1. The InMemory storage provider references Newtonsoft.Json 13.0.2. The integration tests reference Shouldly 3.0.2 and xunit 2.4.1. The console sample references EventStore.Client 5.0.1 and Microsoft.Extensions.DependencyInjection 3.0.0-preview3.1. The common samples reference Newtonsoft.Json 12.0.3. The legacy v1.0 examples and storage providers are also updated with their respective package versions.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 45 → 42 (-3.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 50 → 50 (+0.0)
- Architecture 93 → 70 (-23.3)
- Maturity 40 → 40 (+0.0)
- Readiness 45 → 45 (+0.0)
- Security 63 → 46 (-17.3)
- Domain Modelling 75 → 75 (+0.0)
- Performance 43 → 38 (-5.4)
Resolved (32)
- Coverage not measured — no coverage collector is wired up
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/Core/EventstoreStorageCore.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/Core/IEventStoreStorageCore.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/EventStoreEventStorageProvider.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/EventStoreEventStorageProvider.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/EventStoreEventStorageProvider.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.InMemory/InMemoryEventStorageProvider.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.InMemory/InMemoryEventStorageProvider.cs)
- Cross-context type AggregateRoot (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.InMemory/InMemoryEventStorageProvider.cs)
- Cross-context type ISnapshotStorageProvider (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.EventStore/EventStoreSnapshotStorageProvider.cs)
- Cross-context type ISnapshotStorageProvider (NEventLite → Storage) (src/Storage/NEventLite.StorageProviders.InMemory/InMemorySnapshotStorageProvider.cs)
- Cross-context type ISnapshotStorageProvider (NEventLite → v1.0) (legacy/v1.0/src/Storage Providers/InMemory/InMemorySnapshotStorageProvider.cs)
- Cross-context type ISnapshotStorageProvider (NEventLite → v1.0) (legacy/v1.0/src/Storage Providers/Redis/RedisSnapshotStorageProvider.cs)
- Cross-context type LogSeverity (NEventLite → v1.0) (legacy/v1.0/src/Examples/NEventLite Example/Logging/ConsoleLogger.cs)
- End-of-life runtime: .NET netcoreapp2.1 (src/NEventLite.Tests.Integration/NEventLite.Tests.Integration.csproj)
- Inconsistent casing in the namespace/type name 'Eventstore'. Some symbols use 'Eventstore' (lowercase 's'), while the core library interfaces and other providers use 'EventStore' (uppercase 'S'). This suggests a typo or inconsistent casing convention for the word 'EventStore' across the codebase.
- Inconsistent naming for the concept of the prefix used for event streams. The interface IEventStoreSettings defines the property as EventStreamPrefix, while the implementation class EventstoreConnection exposes a method GetSnapshotStreamPrefix. The method name incorrectly implies it retrieves a snapshot prefix rather than the event stream prefix defined in the contract.
- Inconsistent spelling of technical terms in private fields. _stoage is a typo for _storage. _serializerSetting is singular while the type is JsonSerializerSettings (plural). _inMemoryEventStorePath uses 'EventStore' (correct casing) but _stoage is a typo. The primary inconsistency is the typo _stoage vs the correct _storage concept elsewhere.
- Low XML-doc coverage: NEventLite (legacy/v1.0/src/Framework/NEventLite.csproj)
- Low XML-doc coverage: NEventLite (src/NEventLite/NEventLite.csproj)
- …and 12 more
New (15)
- End-of-life runtime: .NET netcoreapp2.1 (src/NEventLite.Tests.Integration/NEventLite.Tests.Integration.csproj)
- End-of-life runtime: .NET netcoreapp2.1 (src/Samples/NEventLite.Samples.ConsoleApp/NEventLite.Samples.ConsoleApp.csproj)
- CommitChanges returns an awaitable but lacks the Async suffix its 13 peers carry (legacy/v1.0/src/Framework/Repository/Repository.cs)
- CommitChanges returns an awaitable but lacks the Async suffix its 20 peers carry (src/NEventLite/Repository/Repository.cs)
- doc comments repeat the names (legacy/v1.0/src/Framework/Event/Event.cs)
- redundant comment (legacy/v1.0/src/Framework/Repository/Repository.cs)
- redundant comment (legacy/v1.0/src/Storage Providers/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Storage Providers/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Storage Providers/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Storage Providers/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Unit Tests/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Unit Tests/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Unit Tests/Properties/AssemblyInfo.cs)
- redundant comment (legacy/v1.0/src/Unit Tests/Properties/AssemblyInfo.cs)
- redundant comment (src/NEventLite/Repository/Repository.cs)
API surface
- Unchanged — 1 HTTP endpoints
Architecture
- Unchanged — 0 containers · 3 contexts · 2 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
dasiths/NEventLite was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 1742b7ba48a3ced35c4e407b8be3401526d40ade — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.