mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
对象预览器支持了值类型集合成员的简单预览
This commit is contained in:
@@ -13,21 +13,21 @@ namespace Serein.Library.Framework.NodeFlow
|
||||
/// </summary>
|
||||
public class DynamicContext : IDynamicContext
|
||||
{
|
||||
public DynamicContext(ISereinIOC sereinIoc, IFlowEnvironment flowEnvironment)
|
||||
public DynamicContext(/*ISereinIOC sereinIoc,*/ IFlowEnvironment flowEnvironment)
|
||||
{
|
||||
SereinIoc = sereinIoc;
|
||||
FlowEnvironment = flowEnvironment;
|
||||
// SereinIoc = sereinIoc;
|
||||
Env = flowEnvironment;
|
||||
}
|
||||
|
||||
public NodeRunCts NodeRunCts { get; set; }
|
||||
public ISereinIOC SereinIoc { get; }
|
||||
public IFlowEnvironment FlowEnvironment { get; }
|
||||
// public ISereinIOC SereinIoc { get; }
|
||||
public IFlowEnvironment Env { get; }
|
||||
|
||||
public Task CreateTimingTask(Action action, int time = 100, int count = -1)
|
||||
{
|
||||
if(NodeRunCts == null)
|
||||
{
|
||||
NodeRunCts = SereinIoc.GetOrRegisterInstantiate<NodeRunCts>();
|
||||
NodeRunCts = Env.IOC.GetOrRegisterInstantiate<NodeRunCts>();
|
||||
}
|
||||
// 使用局部变量,避免捕获外部的 `action`
|
||||
Action localAction = action;
|
||||
|
||||
Reference in New Issue
Block a user