Papst.EventStore.Aggregation.EventRegistration
7.2.7
dotnet add package Papst.EventStore.Aggregation.EventRegistration --version 7.2.7
NuGet\Install-Package Papst.EventStore.Aggregation.EventRegistration -Version 7.2.7
<PackageReference Include="Papst.EventStore.Aggregation.EventRegistration" Version="7.2.7" />
<PackageVersion Include="Papst.EventStore.Aggregation.EventRegistration" Version="7.2.7" />
<PackageReference Include="Papst.EventStore.Aggregation.EventRegistration" />
paket add Papst.EventStore.Aggregation.EventRegistration --version 7.2.7
#r "nuget: Papst.EventStore.Aggregation.EventRegistration, 7.2.7"
#:package Papst.EventStore.Aggregation.EventRegistration@7.2.7
#addin nuget:?package=Papst.EventStore.Aggregation.EventRegistration&version=7.2.7
#tool nuget:?package=Papst.EventStore.Aggregation.EventRegistration&version=7.2.7
Papst.EventStore.Aggregation.EventRegistration
Aggregation for Papst.EventStore driven by code-generated event registration.
This package provides the IEventStreamAggregator<TEntity> implementation that replays an event stream
onto an entity by resolving the matching IEventAggregator<TEntity, TEvent> handlers from the dependency
injection container. It also contains the attributes the source generator in
Papst.EventStore.CodeGeneration looks for.
Installation
dotnet add package Papst.EventStore.Aggregation.EventRegistration
Usage
Register the aggregator alongside the generated event registration:
services.AddRegisteredEventAggregation();
services.AddCodeGeneratedEvents(); // emitted by Papst.EventStore.CodeGeneration
Then aggregate a stream:
var aggregator = provider.GetRequiredService<IEventStreamAggregator<MyEntity>>();
MyEntity? entity = await aggregator.AggregateAsync(stream, cancellationToken);
Attributes
| Attribute | Purpose |
|---|---|
[EventName("...")] |
Names an event for the registry; repeatable for versioning, set IsWriteName = false for read-only aliases |
[EventAggregation] |
Marks a type as taking part in generated aggregation; set Mode = AggregationMode.RemoveByKey to remove the keyed entry instead of upserting |
[AggregationProperty] / [AggregationIgnore] |
Control which properties are aggregated |
[AggregationCollectionKey] / [AggregationDictionaryKey] |
Identify items when aggregating collections |
[SkipWhenNull] |
Skip applying a property when the event value is null |
[AggregationContextStamp] |
Stamp an entity property from the stream context (EventTime, StreamId, StreamCreated, CurrentVersion, TargetVersion); OnEveryEvent = false stamps only on create |
See the project README for the full documentation.
License
MIT
| 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. net11.0 is compatible. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Newtonsoft.Json (>= 13.0.4)
- Papst.EventStore (>= 7.2.7)
-
net11.0
- Newtonsoft.Json (>= 13.0.4)
- Papst.EventStore (>= 7.2.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.2.7 | 43 | 11/24/2026 |
| 7.2.5 | 46 | 11/24/2026 |
| 7.1.4 | 47 | 11/24/2026 |
| 7.1.2 | 47 | 11/24/2026 |
| 7.0.14 | 87 | 11/23/2026 |
| 7.0.12 | 302 | 9/19/2026 |
| 7.0.4 | 142 | 8/18/2026 |
| 7.0.3 | 125 | 8/18/2026 |
| 6.4.5 | 155 | 8/10/2026 |
| 6.4.3 | 118 | 8/10/2026 |
| 6.3.3 | 159 | 8/2/2026 |
| 6.3.2 | 135 | 8/2/2026 |
| 6.2.2 | 136 | 7/19/2026 |
| 6.1.5 | 133 | 7/19/2026 |
| 6.1.2 | 762 | 5/16/2026 |
| 6.0.17 | 147 | 5/16/2026 |
| 6.0.14 | 171 | 5/6/2026 |
| 6.0.11 | 127 | 5/2/2026 |
| 6.0.9 | 157 | 4/12/2026 |
| 6.0.4 | 132 | 4/11/2026 |