FluxFlow.Components.State.Composition 1.3.0

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

FluxFlow.Components.State.Composition

Optional FluxFlow.Composition registration helpers for the standalone state reducer node from FluxFlow.Components.State.

This package does not scan assemblies, resolve CLR types from strings, create reducer registries, or own expression engines. Hosts register the state reducer factory explicitly and provide a keyed IFlowExpressionEngine; they may also provide an optional keyed TimeProvider.

Registration

services
    .AddKeyedSingleton<IFlowExpressionEngine>("state", expressionEngine)
    .AddFluxFlowComposition(configuration)
    .RegisterNodes(registry => registry.RegisterStateReducer());

Node Types

Type Node Ports
state.reducer StateReducerNode Input, Output

The factory exposes Events and Errors. engine is a required keyed IFlowExpressionEngine resource. clock is an optional keyed TimeProvider resource for deterministic result, event, and error timestamps.

Configuration

{
  "FluxFlow": {
    "Composition": {
      "workflows": {
        "main": {
          "nodes": {
            "state": {
              "type": "state.reducer",
              "resources": {
                "engine": "state",
                "clock": "fixed"
              },
              "configuration": {
                "reducer": "count",
                "keyExpression": "topic-key",
                "initialState": 0,
                "maxKeys": 1024,
                "boundedCapacity": 128,
                "expressionName": "topic counter"
              }
            }
          },
          "links": []
        }
      }
    }
  }
}

The node binds the existing StateReducerOptions shape from composition configuration. StateReducerOptions.Engine remains configuration metadata; the composition adapter resolves the expression engine from the engine resource.

Design Metadata

StateComponentDesignMetadataProvider exposes neutral Designer metadata for state.reducer so hosts can build palettes, editors, validation hints, or documentation without copying package descriptors. The metadata describes the existing StateReducerOptions configuration surface, option grouping/editor hints, fixed Input/Output ports, and host-owned resource picker hints for the required keyed expression engine and optional keyed TimeProvider. Those resources stay host-owned; the engine option remains only diagnostic/config metadata and is not used for DI selection. The metadata is authored through the shared validated Designer metadata builder while preserving the same public metadata contracts consumed by hosts.

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
8.0.0-rc.1 58 9/5/2026
7.0.0-rc.1 68 8/9/2026
6.0.0 113 8/3/2026
1.4.0 120 7/3/2026
1.3.0 109 7/2/2026

Adds richer Designer option and resource hints for the state reducer metadata provider.