摘要: 步骤既可以通过继承于StepBody的类来定义,对于简单的步骤,也可以通过内联的方式定义,如下面的例子: public class HelloWorldWorkflow : IWorkflow { public string Id => "HelloWorld"; public int Versio 阅读全文
posted @ 2021-02-16 21:02 顺其自然,道法自然 阅读(948) 评论(0) 推荐(0) 编辑
摘要: 并行工作流示例如下: public class ParallelWorkflow : IWorkflow<MyData> { public string Id => "parallel-sample"; public int Version => 1; public void Build(IWork 阅读全文
posted @ 2021-02-16 20:13 顺其自然,道法自然 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 参考开源项目:https://github.com/tomakita/Colorful.Console 首先通过NuGet安装Colorful.Console。 基本用法如下: using System; using System.Drawing; using Console = Colorful. 阅读全文
posted @ 2021-02-16 10:00 顺其自然,道法自然 阅读(862) 评论(0) 推荐(0) 编辑