优化了接口设计,提供Event属性。

This commit is contained in:
fengjiayi
2025-06-02 16:45:10 +08:00
parent b1dc641c84
commit c7fbdc1cbb
5 changed files with 27 additions and 34 deletions

View File

@@ -80,7 +80,11 @@ namespace Serein.NodeFlow.Env
/// <inheritdoc/>
public NodeMVVMManagement NodeMVVMManagement => currentFlowEnvironment.NodeMVVMManagement;
/// <inheritdoc/>
public ISereinIOC IOC => (ISereinIOC)currentFlowEnvironment;
public ISereinIOC IOC => currentFlowEnvironment.IOC;
/// <inheritdoc/>
public IFlowEnvironmentEvent Event => currentFlowEnvironment.Event;
/// <inheritdoc/>
public string EnvName => currentFlowEnvironment.EnvName;

View File

@@ -224,6 +224,11 @@ namespace Serein.NodeFlow.Env
/// </summary>
public IFlowEnvironment CurrentEnv { get => this; }
/// <summary>
/// 流程事件
/// </summary>
public IFlowEnvironmentEvent Event { get => this; }
/// <summary>
/// UI线程操作类
/// </summary>

View File

@@ -65,6 +65,10 @@ namespace Serein.NodeFlow.Env
public ISereinIOC IOC => throw new NotImplementedException();
/// <summary>
/// 流程事件
/// </summary>
public IFlowEnvironmentEvent Event { get => this; }
public string EnvName => LocalFlowEnvironment.SpaceName;
/// <summary>