修复S7服务轮询问题

This commit is contained in:
2025-09-15 20:54:32 +08:00
parent 4773e87886
commit 5ab18f95f0
21 changed files with 351 additions and 260 deletions

View File

@@ -6,12 +6,15 @@ namespace DMS.Application.Models
public class VariableContext
{
public VariableDto Data { get; set; }
public object NewValue { get; set; }
public bool IsHandled { get; set; }
public VariableContext(VariableDto data)
public VariableContext(VariableDto data, object newValue=null)
{
Data = data;
IsHandled = false; // 默认未处理
NewValue = newValue;
}
}
}