metalTools.StateMachine 26.10.11.1

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

metalTools.StateMachine

A small class-per-state state machine with explicit allowed transitions and Enter, Update, and Exit hooks. State instances belong to one machine; each update invokes the currently active state's hook. It is synchronous and does not serialize concurrent calls.

using metalTools.StateMachine;

Register states before declaring valid transitions and calling SetInitialState<T>(). TransitionTo<T>() returns false for a disallowed transition. EventPump is an optional application-level integration rather than a required package dependency.

For richer triggers, guards, hierarchical states and async transitions, consider the established Stateless library.

Product Compatible and additional computed target framework versions.
.NET 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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on metalTools.StateMachine:

Package Downloads
metalTools

Convenience package for LoggerLite, PortDiscovery, StateMachine and ServiceDiscovery.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.10.11.1 173 10/11/2026
26.10.10.1232 142 10/10/2026
26.9.29.13 115 9/29/2026