Dolittle.SDK.Aggregates 23.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dolittle.SDK.Aggregates --version 23.0.0
                    
NuGet\Install-Package Dolittle.SDK.Aggregates -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.Aggregates" 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.Aggregates" Version="23.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Dolittle.SDK.Aggregates" />
                    
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.Aggregates --version 23.0.0
                    
#r "nuget: Dolittle.SDK.Aggregates, 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.Aggregates@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.Aggregates&version=23.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Dolittle.SDK.Aggregates&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 (1)

Showing the top 1 NuGet packages that depend on Dolittle.SDK.Aggregates:

Package Downloads
Dolittle.SDK

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 1,435 2/5/2025
24.1.1 172 2/3/2025
24.1.0 149 1/7/2025
24.0.0 139 11/13/2024
23.5.2 238 11/13/2024
23.5.1 150 11/7/2024
23.5.0 927 10/23/2024
23.4.0 415 10/2/2024
23.3.0 560 7/31/2024
23.2.5 652 6/20/2024
23.2.4 274 6/13/2024
23.2.3 208 6/10/2024
23.2.2 244 6/2/2024
23.2.1 238 5/16/2024
23.2.0 2,332 3/14/2024
23.1.0 275 3/12/2024
23.0.0 276 3/8/2024
22.1.3 336 2/26/2024
22.1.2 1,158 10/24/2023
22.1.1 352 10/4/2023
22.1.0 305 9/18/2023
22.0.5 366 9/7/2023
22.0.4 427 8/28/2023
22.0.3 425 8/15/2023
22.0.2 381 8/8/2023
22.0.1 354 8/8/2023
22.0.0 540 6/22/2023
22.0.0-arkenstone.1 132 6/21/2023
22.0.0-arkenstone.0 136 6/12/2023
21.0.2 529 9/7/2023
21.0.1 682 6/8/2023
21.0.0 403 6/2/2023
21.0.0-feanor.2 132 5/31/2023
21.0.0-feanor.1 1,210 5/30/2023
21.0.0-feanor.0 135 5/30/2023
20.2.0 2,431 1/23/2023
20.2.0-shire.17 176 1/19/2023
20.2.0-shire.16 169 1/16/2023
20.2.0-shire.15 176 1/12/2023
20.2.0-shire.14 174 1/12/2023
20.2.0-shire.13 168 1/12/2023
20.2.0-shire.12 168 1/11/2023
20.2.0-shire.11 169 1/10/2023
20.2.0-shire.10 171 1/6/2023
20.2.0-shire.9 175 1/6/2023
20.2.0-shire.8 167 1/6/2023
20.2.0-shire.7 160 1/6/2023
20.2.0-shire.6 170 1/5/2023
20.2.0-shire.5 173 1/5/2023
20.2.0-shire.4 176 1/5/2023
20.2.0-shire.3 170 1/5/2023
20.2.0-shire.2 178 12/26/2022
20.2.0-shire.1 171 12/26/2022
20.2.0-shire.0 170 12/26/2022
20.1.0 336 12/25/2022
20.1.0-faramir.1 167 12/12/2022
20.1.0-faramir.0 156 12/9/2022
20.0.2 1,002 12/13/2022
20.0.1 301 12/12/2022
20.0.0 318 12/8/2022
19.1.0-elrond.7 166 12/7/2022
19.1.0-elrond.6 158 12/5/2022
19.1.0-elrond.5 153 12/5/2022
19.1.0-elrond.4 156 12/2/2022
19.1.0-elrond.3 164 12/2/2022
19.1.0-elrond.2 168 11/29/2022
19.1.0-elrond.1 165 11/28/2022
19.1.0-elrond.0 164 11/28/2022
19.0.0 521 11/25/2022
19.0.0-proto.5 152 11/25/2022
19.0.0-proto.4 180 11/22/2022
19.0.0-proto.3 155 11/21/2022
19.0.0-proto.2 151 11/21/2022
19.0.0-proto.1 156 11/21/2022
19.0.0-proto.0 174 11/18/2022
18.2.0-bolt.1 162 11/16/2022
18.2.0-bolt.0 175 11/16/2022
18.1.1 1,054 10/31/2022
18.1.0 1,020 10/26/2022
18.0.1 1,069 10/20/2022
18.0.0 1,113 9/15/2022
17.2.3 1,148 9/9/2022
17.2.2 1,702 8/26/2022
17.2.1 1,932 8/10/2022
17.2.0 1,244 7/8/2022
17.1.2 1,143 7/7/2022
17.1.1 1,153 7/7/2022
17.1.0 1,124 7/5/2022
17.1.0-boromir.4 203 7/8/2022
17.1.0-boromir.3 191 7/5/2022
17.1.0-boromir.2 183 7/1/2022
17.1.0-boromir.1 181 7/1/2022
17.0.2 1,575 6/21/2022
17.0.0 4,271 3/25/2022
17.0.0-meriadoc.0 205 3/24/2022
16.0.1 1,203 3/22/2022
16.0.0 1,184 3/14/2022
15.1.3 1,182 3/8/2022
15.1.2 1,164 3/1/2022
15.1.1 1,136 2/11/2022
15.1.0 1,159 2/11/2022
15.0.1 1,358 2/10/2022
15.0.0 1,161 2/10/2022
14.2.0 1,157 2/9/2022
14.2.0-sam.2 205 2/9/2022
14.2.0-sam.1 195 2/7/2022
14.2.0-sam.0 209 2/7/2022
14.1.0 1,137 1/28/2022
14.0.0 1,158 1/25/2022
14.0.0-gollum.1 209 1/25/2022
14.0.0-gollum.0 214 1/24/2022
13.1.0-bilbo.4 214 1/24/2022
13.1.0-bilbo.3 211 1/24/2022
13.1.0-bilbo.2 200 1/21/2022
13.1.0-bilbo.1 206 1/21/2022
13.1.0-bilbo.0 208 1/21/2022
13.0.1 1,206 1/24/2022
13.0.0 1,187 1/20/2022
13.0.0-gimli.10 207 1/20/2022
13.0.0-gimli.9 253 1/19/2022
13.0.0-gimli.8 206 1/19/2022
13.0.0-gimli.7 207 1/18/2022
13.0.0-gimli.6 216 1/17/2022
13.0.0-gimli.5 215 1/17/2022
13.0.0-gimli.4 204 1/17/2022
13.0.0-gimli.3 238 12/7/2021
13.0.0-gimli.2 255 12/7/2021
13.0.0-gimli.1 252 12/7/2021
13.0.0-gimli.0 898 12/1/2021
12.1.0-gandalf.0 1,513 11/26/2021
12.0.0 834 11/18/2021
12.0.0-legolas.7 217 11/18/2021
12.0.0-legolas.6 225 11/16/2021
12.0.0-legolas.5 221 11/15/2021
12.0.0-legolas.4 230 11/15/2021
12.0.0-legolas.3 257 11/11/2021
12.0.0-legolas.2 238 11/10/2021
12.0.0-legolas.1 234 11/9/2021
12.0.0-legolas.0 228 11/9/2021
11.0.0 7,457 11/5/2021
11.0.0-aragorn.8 264 11/5/2021
11.0.0-aragorn.7 262 11/4/2021
11.0.0-aragorn.6 229 11/4/2021
11.0.0-aragorn.5 244 11/4/2021
11.0.0-aragorn.4 254 11/2/2021
11.0.0-aragorn.3 251 11/2/2021
11.0.0-aragorn.2 241 10/29/2021
11.0.0-aragorn.1 224 10/26/2021
11.0.0-aragorn.0 279 10/25/2021
10.1.0 913 10/21/2021
10.0.0 733 10/13/2021
10.0.0-eventsource.1 246 10/13/2021
10.0.0-eventsource.0 229 10/5/2021
9.2.0 6,524 9/29/2021
9.2.0-register-all.1 236 9/15/2021
9.2.0-register-all.0 234 9/7/2021
9.1.1 2,002 12/21/2021
9.1.0 4,880 7/14/2021
9.1.0-embeddings.0 238 7/5/2021
9.0.0 900 6/16/2021
8.5.0-timeout.4 1,455 6/4/2021
8.5.0-timeout.3 236 6/4/2021
8.5.0-timeout.2 299 5/31/2021
8.5.0-timeout.1 400 5/30/2021
8.5.0-timeout.0 322 5/29/2021
8.4.0 4,244 4/9/2021
8.4.0-projections.2 269 4/9/2021
8.4.0-projections.1 248 4/7/2021
8.4.0-projections.0 254 4/7/2021
8.3.2 2,423 3/24/2021
8.3.1 908 2/22/2021
8.3.0 795 2/17/2021
8.2.0 787 2/17/2021
8.1.1 780 2/14/2021
8.1.0 843 2/14/2021

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)