mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
重构了底层,方便向Android、Web、Linux进行跨平台迁移
This commit is contained in:
@@ -12,13 +12,15 @@ namespace Serein.Library.Framework.NodeFlow
|
||||
/// </summary>
|
||||
public class DynamicContext : IDynamicContext
|
||||
{
|
||||
public DynamicContext(ISereinIoc sereinIoc)
|
||||
public DynamicContext(ISereinIoc sereinIoc, IFlowEnvironment flowEnvironment)
|
||||
{
|
||||
SereinIoc = sereinIoc;
|
||||
FlowEnvironment = flowEnvironment;
|
||||
}
|
||||
|
||||
public NodeRunCts NodeRunCts { get; set; }
|
||||
public ISereinIoc SereinIoc { get; }
|
||||
public IFlowEnvironment FlowEnvironment { get; }
|
||||
public Task CreateTimingTask(Action action, int time = 100, int count = -1)
|
||||
{
|
||||
if(NodeRunCts == null)
|
||||
|
||||
Reference in New Issue
Block a user