DaLi.Utils.Flow
3.25.5.1117
dotnet add package DaLi.Utils.Flow --version 3.25.5.1117
NuGet\Install-Package DaLi.Utils.Flow -Version 3.25.5.1117
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="DaLi.Utils.Flow" Version="3.25.5.1117" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DaLi.Utils.Flow" Version="3.25.5.1117" />
<PackageReference Include="DaLi.Utils.Flow" />
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 DaLi.Utils.Flow --version 3.25.5.1117
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DaLi.Utils.Flow, 3.25.5.1117"
#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 DaLi.Utils.Flow@3.25.5.1117
#: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=DaLi.Utils.Flow&version=3.25.5.1117
#tool nuget:?package=DaLi.Utils.Flow&version=3.25.5.1117
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DaLi.Utils.Flow
一个轻量级的工作流引擎,用于构建和执行自动化流程。
功能特性
- 基于规则的流程执行
- 灵活的参数配置
- 支持异步操作
- 内置多种常用规则
- 可扩展的规则系统
快速开始
安装
dotnet add package DaLi.Utils.Flow
基本使用
// 创建一个简单的控制台输出规则
var consoleRule = new DaLi.Utils.Flow.Rules.Console
{
Content = "Hello, DaLi Flow!",
NewLine = true
};
// 执行规则
var context = new Dictionary<string, object>();
var result = await consoleRule.ExecuteAsync(context);
核心组件
FlowRuleBase
所有规则的基类,提供了规则执行的基本框架。
内置规则
- Console:控制台输出规则
- 更多规则正在开发中...
扩展开发
您可以通过继承 FlowRuleBase
类来创建自定义规则:
public class CustomRule : FlowRuleBase
{
public override string Name => "自定义规则";
protected override IDictionary<string, object> Execute(
IDictionary<string, object> context,
ExecuteStatus status,
CancellationToken cancel)
{
// 实现您的规则逻辑
return new Dictionary<string, object>();
}
}
许可证
本项目基于 Mulan PSL v2 许可证开源。
贡献
欢迎提交问题和建议,一起改进这个项目!
关于
- 作者:木炭(WOODCOAL)
- 邮箱:i@woodcoal.cn
- 主页:http://www.hunandali.com/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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.
-
net8.0
- DaLi.Utils.Core (>= 3.25.5.1117)
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 |
---|---|---|
3.25.5.1117 | 148 | 5/11/2025 |