Mimosa 1.0.6

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

Mimosa

Getting started

Mimosa is a flexible workflow framework. The usage of the framework is simple & strateforward.

    char ch = ' ';

    // Create trigger with initial state
    var trigger = new Trigger(mStates.New);

    // Setup allowed states
    trigger.Setup(mStates.New)
        .Allow(mStates.Implemented, null, mAction.Develop);
    trigger.Setup(mStates.Implemented)
        .Allow(mStates.Approved, () => ch == 'y', mAction.Approve, mAction.Approve2)
        .Allow(mStates.Rejected, () => ch != 'y', mAction.Reject);
    trigger.Setup(mStates.Approved)
        .Allow(mStates.Deployed, null, mAction.Deploy);

    // Activate trigger with appropriate actions
    trigger.Activate(mAction.Develop);
    trigger.Activate(mAction.Approve2);

    Console.Write("Approve? (y/n)");
    var rk = Console.ReadKey();
    Console.WriteLine();

    ch = rk.KeyChar;
    if (ch == 'y')
    {
        trigger.Activate(mAction.Approve);
        trigger.Activate(mAction.Deploy);
    }
    else
    {
        trigger.Activate(mAction.Reject);
    }

    Console.WriteLine("Press any key to exit ...");
    Console.ReadKey();

    // Define states
    public enum mStates
    {
        New,
        Implemented,
        Approved,
        Rejected,
        Deployed
    }

    // Define actions
    public enum mAction
    {
        Develop,
        Approve,
        Approve2,
        Reject,
        Deploy
    }
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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.
  • net6.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.

Version Downloads Last Updated
1.0.8 152 10/26/2024
1.0.6 131 10/26/2024
1.0.5 135 10/13/2024
1.0.4 123 10/13/2024
1.0.3 184 9/11/2023
1.0.2 161 9/11/2023
1.0.0 154 9/11/2023