Dolittle.SDK.Events.Processing 23.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dolittle.SDK.Events.Processing --version 23.0.0
                    
NuGet\Install-Package Dolittle.SDK.Events.Processing -Version 23.0.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="Dolittle.SDK.Events.Processing" Version="23.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dolittle.SDK.Events.Processing" Version="23.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Dolittle.SDK.Events.Processing" />
                    
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 Dolittle.SDK.Events.Processing --version 23.0.0
                    
#r "nuget: Dolittle.SDK.Events.Processing, 23.0.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.
#:package Dolittle.SDK.Events.Processing@23.0.0
                    
#: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=Dolittle.SDK.Events.Processing&version=23.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Dolittle.SDK.Events.Processing&version=23.0.0
                    
Install as a Cake Tool

Dolittle

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

This is our C# SDK, install it with:

dotnet add package Dolittle.SDK 

Get Started

Want to try another language?

Issues and Contributing

Issues and contributions are always welcome!

To learn how to contribute, please read our contributing guide.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  net8.0-android was computed.  net8.0-browser 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (10)

Showing the top 5 NuGet packages that depend on Dolittle.SDK.Events.Processing:

Package Downloads
Dolittle.SDK

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

Dolittle.SDK.Events.Handling

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

Dolittle.SDK.Events.Filters

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

Dolittle.SDK.Projections

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

Dolittle.SDK.Embeddings

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
24.1.2 3,148 2/5/2025
24.1.1 354 2/3/2025
24.1.0 300 1/7/2025
24.0.0 327 11/13/2024
23.5.2 444 11/13/2024
23.5.1 368 11/7/2024
23.5.0 1,134 10/23/2024
23.4.0 636 10/2/2024
23.3.0 756 7/31/2024
23.2.5 811 6/20/2024
23.2.4 486 6/13/2024
23.2.3 400 6/10/2024
23.2.2 402 6/2/2024
23.2.1 429 5/16/2024
23.2.0 3,661 3/14/2024
23.1.0 534 3/12/2024
23.0.0 550 3/8/2024
22.1.3 663 2/26/2024
22.1.2 1,675 10/24/2023
22.1.1 897 10/4/2023
Loading failed

Version 23.0.0:
Projections:
This version rewrites projections from being a runtime feature to being done completely on the SDK side. It keeps the interface pretty much the same as the old projections, but relaxes some rules around method signatures.  Context is now an optional second parameter, and allows both ProjectionContext or EventContext. KeyFrom is now optional and will default to the EventSourceId. All projections also needs to extend

The existing IProjectionOf and IProjectionStore interfaces have been reduced to expose Get and the ability to use IQueryable, and will now allow all filtering to be done in the DB.

Example Projection

[Projection("055319f1-6af8-48a0-b190-323e21ba6cde")]
public class SomeProjection : ReadModel
{
   public int UpdateCount { get; set; }
   public string Content { get; set; } = string.Empty;
   public int SomeNumber { get; set; }

   public void On(SomeEvent evt, ProjectionContext ctx)
   {
       UpdateCount++;
       Content = evt.Content;
   }

   public void On(SomeOtherEvent evt, ProjectionContext ctx)
   {
       UpdateCount++;
       SomeNumber = evt.SomeNumber;
   }

   public ProjectionResultType On(DeleteEvent _) => ProjectionResultType.Delete;
}Aggregates:
Added Perform<TResponse> which allows the caller to get return values from operations on aggregates.

Added:
- SDK Projections - Full rewrite
- ProjectionTests<TProjection> - Added blackbox testing of projections.
- AggregateRoot.Perform<TResponse> - Ability to get responses from aggregates

Removed:
- Runtime integrated projections

Changelog:
For all release notes, see changelog (https://github.com/dolittle/DotNET.SDK/blob/master/CHANGELOG.md)