Mimosa 1.0.6
There is a newer version of this package available.
See the version list below for details.
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.
paket add Mimosa --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
// Install Mimosa as a Cake Addin #addin nuget:?package=Mimosa&version=1.0.6 // Install Mimosa as a Cake Tool #tool nuget:?package=Mimosa&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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. |
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.