Movensys.FSMHelper 1.0.2

Suggested Alternatives

Movensys.FSMHelper.Core 1.0.3

Additional Details

Separate functionality into Core/WinForms for cross-platform use

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

Movensys.FSMHelper

This is a function for writing logs in .txt format developed by the Movensys Application Team.

Features

  • Easy to use based on enum
  • State Management
  • State Transition
  • State Query
  • Timeout Management
  • Events

Code Highlighting

using Movensys.FSMHelper;

namespace WinFormsApp1
{
    public enum DeviceState
 {
     Idle,
     Running,
     Error,
     Stopped
 }

 var fsm = new MovensysFSM.Fsm<DeviceState>(DeviceState.Idle);

 fsm.Set(DeviceState.Running);

 var currentState = fsm.Get();

 if (fsm.IsTimeout(5000))
 {
    Console.WriteLine("Timeout");
 }

 fsm.SetCheckEvent += (sender, e) =>
 {
    Console.WriteLine($"State : {e.previousCmd} -> {e.currentCmd}");
 };
}

Tip

Release History

April 28, 2025 - Version 1.0.2 Added icon, copyright, information, and .md files.

April 23, 2025 - Version 1.0.1 Initial release.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.