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
<PackageReference Include="metalTools.StateMachine" Version="26.10.11.1" />
<PackageVersion Include="metalTools.StateMachine" Version="26.10.11.1" />
<PackageReference Include="metalTools.StateMachine" />
paket add metalTools.StateMachine --version 26.10.11.1
#r "nuget: metalTools.StateMachine, 26.10.11.1"
#:package metalTools.StateMachine@26.10.11.1
#addin nuget:?package=metalTools.StateMachine&version=26.10.11.1
#tool nuget:?package=metalTools.StateMachine&version=26.10.11.1
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 | Versions 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. |
-
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 |