Leira.EventSourcing 1.1.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET Core 3.1
dotnet add package Leira.EventSourcing --version 1.1.0
NuGet\Install-Package Leira.EventSourcing -Version 1.1.0
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="Leira.EventSourcing" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Leira.EventSourcing --version 1.1.0
#r "nuget: Leira.EventSourcing, 1.1.0"
#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.
// Install Leira.EventSourcing as a Cake Addin
#addin nuget:?package=Leira.EventSourcing&version=1.1.0

// Install Leira.EventSourcing as a Cake Tool
#tool nuget:?package=Leira.EventSourcing&version=1.1.0

# #


Strongly typed event sourcing framework that useses CosmosDb as a datastore with strong consistency and resiliency.

About Event Sourcing

Traditionally, developers used to store state in databases, however this can be a problem as it doesn't track what happened to get to that end state. Making data auditing and applications debugging more difficult. Event Sourcing is the concept of storing all events that lead to the current state, which allows you to construct your endstate anytime on the fly.



An aggregate is your state object, eg. User, this is your UserAggregate. The aggregate can execute Commands & apply Events.


A command is the action that the user takes in order to take an action, eg. Signup, ChangePassword ...etc. The command is responsible to validate the current state and that it can take the necessary action, however it doesn't change the state it self. Each command emmit Event(s) that change the state of the aggregate.


Emitted by Commands, events are units of change against an Aggregate. Each event changes the state of the Aggregate appropriately.


  • Commands Idepmotency (Prevents the same command from running twice.
  • Automatic Commands Storage.
  • Automatic Events Versioning.
  • Automatic Snapshotting.
  • Cross Servers Concurrency and Consistency.
  • Strong or Loose Consistency options.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Additional computed target framework(s)
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
1.1.0 466 5/25/2020
1.0.4 429 5/25/2020
1.0.3 392 5/15/2020
1.0.2 395 5/15/2020