FluxFlow.Fluent.Hosting 4.0.0

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

FluxFlow.Fluent.Hosting

Optional hosting bridge for FluxFlow.Fluent.

Register a fluent FlowGraph with AddFlowGraph and it runs as an IHostedService: built and started when the host starts, drained on host stop, and disposed on shutdown. The factory delegate receives the application IServiceProvider, so its nodes can be resolved from DI.

Usage

using FluxFlow.Fluent;
using FluxFlow.Fluent.Hosting;

var builder = Host.CreateApplicationBuilder(args);

builder.Services.AddSingleton<IClock, SystemClock>();

builder.Services.AddFlowGraph(sp => Flow
    .From(new TickSource(sp.GetRequiredService<IClock>()))   // nodes resolved from DI
    .Then(new Worker())
    .To(new Sink())
    .Build());

await builder.Build().RunAsync();

Call AddFlowGraph more than once to host several flows in one application; each runs as its own hosted service.

Boundary

FluxFlow.Fluent.Hosting owns only the host lifecycle wiring: the AddFlowGraph registration and a hosted service that builds the graph (once), starts it, stops it on host stop, and disposes it on shutdown.

It does not own node construction, the DSL, or the runtime — the graph comes from FluxFlow.Fluent (Flow.From(...)...Build()), and you construct nodes inside the factory (optionally from DI). For composing nodes without hosting, use FluxFlow.Fluent directly.

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. 
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
5.0.0-rc.1 58 8/9/2026
4.0.0 105 8/3/2026
1.0.0 112 7/4/2026

Updates hosted Fluent integration for the canonical-only Composition dependency.