Excalibur.EventSourcing.Handlers 10.0.0-alpha.11

This is a prerelease version of Excalibur.EventSourcing.Handlers.
dotnet add package Excalibur.EventSourcing.Handlers --version 10.0.0-alpha.11
                    
NuGet\Install-Package Excalibur.EventSourcing.Handlers -Version 10.0.0-alpha.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Excalibur.EventSourcing.Handlers" Version="10.0.0-alpha.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Excalibur.EventSourcing.Handlers" Version="10.0.0-alpha.11" />
                    
Directory.Packages.props
<PackageReference Include="Excalibur.EventSourcing.Handlers" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Excalibur.EventSourcing.Handlers --version 10.0.0-alpha.11
                    
#r "nuget: Excalibur.EventSourcing.Handlers, 10.0.0-alpha.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Excalibur.EventSourcing.Handlers@10.0.0-alpha.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Excalibur.EventSourcing.Handlers&version=10.0.0-alpha.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Excalibur.EventSourcing.Handlers&version=10.0.0-alpha.11&prerelease
                    
Install as a Cake Tool

Excalibur.EventSourcing.Handlers

Opt-in integration that routes a dispatched message to an event-sourced aggregate using the Decider pattern. It bridges Excalibur event sourcing (IEventSourcedRepository) and Dispatch messaging (IActionHandler) without pulling messaging concerns into the event-sourcing core.

Usage

services.AddAggregateHandler<OrderAggregate, Guid, PlaceOrder>(
    resolveId: msg => msg.OrderId,
    decide: (order, msg, ct) =>
    {
        order.Place(msg.Items);   // raises domain events via the aggregate
        return Task.CompletedTask;
    });

On dispatch the handler:

  1. resolves the aggregate id from the message,
  2. loads the aggregate (GetByIdAsync) — a missing aggregate throws ResourceNotFoundException (no state is fabricated),
  3. invokes decide, which raises the aggregate's own events,
  4. saves with the load-time ETag as the expected version — a concurrent write throws ConcurrencyException.

The identity resolver and decision are supplied at registration (not reflected), so registration is AOT-safe.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
10.0.0-alpha.11 36 9/15/2026
10.0.0-alpha.10 61 9/6/2026
10.0.0-alpha.9 59 8/31/2026
10.0.0-alpha.8 74 8/14/2026
10.0.0-alpha.7 62 8/13/2026
10.0.0-alpha.6 67 8/11/2026
10.0.0-alpha.5 57 8/10/2026
10.0.0-alpha.4 62 8/10/2026