示例工程的修改,以依赖注入的方式

This commit is contained in:
fengjiayi
2024-09-30 10:02:06 +08:00
parent c69fa0ccae
commit f900cac4ea
3 changed files with 49 additions and 25 deletions

View File

@@ -755,6 +755,7 @@ namespace Serein.NodeFlow
/// <returns></returns>
public bool AddInterruptExpression(string key, string expression)
{
if(string.IsNullOrEmpty(expression)) return false;
if (dictMonitorObjExpInterrupt.TryGetValue(key, out var condition))
{
condition.Clear(); // 暂时