Fluent.Streams 1.0.0-preview.2

This is a prerelease version of Fluent.Streams.
dotnet add package Fluent.Streams --version 1.0.0-preview.2
                    
NuGet\Install-Package Fluent.Streams -Version 1.0.0-preview.2
                    
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="Fluent.Streams" Version="1.0.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluent.Streams" Version="1.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Fluent.Streams" />
                    
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 Fluent.Streams --version 1.0.0-preview.2
                    
#r "nuget: Fluent.Streams, 1.0.0-preview.2"
                    
#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 Fluent.Streams@1.0.0-preview.2
                    
#: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=Fluent.Streams&version=1.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fluent.Streams&version=1.0.0-preview.2&prerelease
                    
Install as a Cake Tool

Fluent.Streams

Markerless CQRS and event sourcing primitives for .NET.

Fluent.Streams provides append-only stream-oriented building blocks and source-generated command dispatching while keeping your domain command types framework-free.

using Fluent.Streams;

public sealed record RegisterUser(string Username, string Password);

public sealed class RegisterUserHandler
{
    public ValueTask<UserRegistrationResult> HandleAsync(
        RegisterUser command,
        CancellationToken cancellationToken = default)
    {
        // Append events and return a domain-specific result.
        return ValueTask.FromResult<UserRegistrationResult>(new UserRegistered(command.Username));
    }
}

ICommandDispatcher dispatcher = new EventSourcingBuilder()
    .WithCommand<RegisterUserHandler>()
    .Build();

UserRegistrationResult result = await dispatcher.SendAsync(new RegisterUser("leszek", "secret"));

Command handlers are ordinary classes with HandleAsync(TCommand, CancellationToken) methods. Use ValueTask for commands without a result and ValueTask<TResult> for commands that return a union, result type, or custom response.

License

Fluent.Streams is free and open source software licensed under the MIT License. You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.

Product Compatible and additional computed target framework versions.
.NET 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 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. 
.NET Framework net472 is compatible.  net48 was computed.  net481 is compatible. 
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 Fluent.Streams:

Package Downloads
Fluent.Streams.DependencyInjection

Markerless CQRS and event sourcing primitives for .NET: append-only streams, source-generated command registration, ValueTask handlers, and result-friendly command dispatching.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-preview.2 164 7/4/2026
1.0.0-preview.1 53 7/4/2026