Purview.EventSourcing
2.0.0-prerelease.30
dotnet add package Purview.EventSourcing --version 2.0.0-prerelease.30
NuGet\Install-Package Purview.EventSourcing -Version 2.0.0-prerelease.30
<PackageReference Include="Purview.EventSourcing" Version="2.0.0-prerelease.30" />
<PackageVersion Include="Purview.EventSourcing" Version="2.0.0-prerelease.30" />
<PackageReference Include="Purview.EventSourcing" />
paket add Purview.EventSourcing --version 2.0.0-prerelease.30
#r "nuget: Purview.EventSourcing, 2.0.0-prerelease.30"
#:package Purview.EventSourcing@2.0.0-prerelease.30
#addin nuget:?package=Purview.EventSourcing&version=2.0.0-prerelease.30&prerelease
#tool nuget:?package=Purview.EventSourcing&version=2.0.0-prerelease.30&prerelease
Purview.EventSourcing
Purview.EventSourcing is the core Purview EventSourcing package. It provides aggregate base types, event metadata, provider-agnostic store facades, transaction coordination, and dependency injection extensions for event-sourced .NET applications.
Install
dotnet add package Purview.EventSourcing
What is included
AggregateBaseand related aggregate infrastructureIEventStoreandIQueryableEventStoreIEventStoreTransactionFactoryand transaction result types- Source generation for aggregate events and command methods
- Source-analysis diagnostics and code fixes (
Purview.EventSourcing.SourceGeneratorfor analyzers and generation,Purview.EventSourcing.SourceGenerator.CodeFixesfor IDE code fixes) - Embedded AI agent skills for aggregate design, validation, and value-object modeling
- Common extension points used by provider packages
- Dependency injection helpers for core framework services
Typical usage
builder.Services.AddNullQueryableEventStore();
var order = await store.GetAsync<OrderAggregate>(orderId, cancellationToken)
?? await store.CreateAsync<OrderAggregate>(orderId, cancellationToken: cancellationToken);
order.CreateOrder(customerId);
await store.SaveAsync(order, cancellationToken);
Related packages
- SQL Server (events and snapshots):
Purview.EventSourcing.SqlServer - Azure Storage (events with blob-backed snapshots/large payloads):
Purview.EventSourcing.AzureStorage - MongoDB (events and snapshots):
Purview.EventSourcing.MongoDB - Cosmos DB (snapshot only):
Purview.EventSourcing.CosmosDb
Documentation
When using snapshot-backed providers, especially SQL Server, read the provider docs before assuming deep predicates through complex scalar value object .Value members will translate.
Agent skill integration
When installed from NuGet, Purview.EventSourcing ships bundled agent skills. Consuming repositories that use Purview.DotNetProjectSdk get those skills copied into .agents\skills\ before build so supported coding agents can discover framework-specific guidance automatically.
To opt out, set:
<PropertyGroup>
<EnableAgentFolderInPackage>false</EnableAgentFolderInPackage>
</PropertyGroup>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
- Microsoft.Extensions.Telemetry.Abstractions (>= 10.9.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on Purview.EventSourcing:
| Package | Downloads |
|---|---|
|
Purview.EventSourcing.SqlServer
Azure SQL and SQL Server event stream storage provider for Purview EventSourcing. |
|
|
Purview.EventSourcing.AzureStorage
Azure Table Storage and Blob Storage event store provider for Purview EventSourcing, including snapshot and large-payload support. |
|
|
Purview.EventSourcing.MongoDB
MongoDB event stream and snapshot storage provider for Purview EventSourcing. |
|
|
Purview.EventSourcing.CosmosDb
Azure Cosmos DB queryable snapshot storage provider for Purview EventSourcing. |
|
|
Purview.EventSourcing.InMemory
In-memory non-queryable and queryable snapshot storage provider for Purview EventSourcing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-prerelease.30 | 62 | 9/8/2026 |
| 2.0.0-prerelease.29 | 131 | 8/3/2026 |
| 2.0.0-prerelease.28 | 102 | 7/20/2026 |
| 2.0.0-prerelease.27 | 85 | 7/20/2026 |
| 2.0.0-prerelease.26 | 84 | 7/20/2026 |
| 2.0.0-prerelease.25 | 92 | 7/20/2026 |
| 2.0.0-prerelease.23 | 92 | 7/20/2026 |
| 2.0.0-prerelease.22 | 86 | 7/19/2026 |
| 2.0.0-prerelease.21 | 108 | 6/26/2026 |
| 2.0.0-prerelease.20 | 92 | 6/26/2026 |
| 2.0.0-prerelease.19 | 95 | 6/26/2026 |
| 2.0.0-prerelease.18 | 110 | 6/25/2026 |
| 2.0.0-prerelease.16 | 90 | 6/23/2026 |
| 2.0.0-prerelease.15 | 103 | 6/22/2026 |
| 2.0.0-prerelease.14 | 96 | 6/22/2026 |
| 2.0.0-prerelease.13 | 96 | 6/21/2026 |
| 2.0.0-prerelease.4 | 127 | 6/17/2026 |
| 2.0.0-prerelease.3 | 89 | 6/17/2026 |
| 2.0.0-prerelease.2 | 103 | 6/17/2026 |
| 2.0.0-prerelease.1 | 103 | 6/15/2026 |