Commit Graph

4 Commits

Author SHA1 Message Date
57c6dd9234 修复视觉步骤假超时:CTS 建了却从未传给 Task.Run,超时形同虚设
- VisionFunction.RunAllAsync case 3:原来新建 CancellationTokenSource(5s) 但 await Task.Run(...) 没有传 token,
  于是 catch (OperationCanceledException) when (cts.IsCancellationRequested) 永远不命中;相机掉线或算法卡死时
  RunAllAsync 永不返回,且硬编码 5 秒与文案里读的 Flow.TimeoutSeconds 不一致(该配置项此前完全无效)。
- 新增 Core/Tools/TaskTool.RunWithTimeoutAsync:Task.Run + Task.WaitAsync 真实限时,
  <=0 作为显式关闭超时的逃生门;超时后明确按「步骤被放弃、结果不可信」处理。
- 超时改用 FlowModel.TimeoutSeconds(单步超时现在是可配置的)。
- 新增 6 个 TaskTool 回归测试(含「等待必须停在超时点」的时间断言)。构建 0 error,测试 49/49 通过。
2026-11-17 23:14:32 +08:00
8c3a16bd03 修复 NetTool 两份复制粘贴旧IP正则(首段上限223),统一走已修复的 IsIP;附 Copy/Converter/NetTool 测试 2026-10-21 20:49:25 +08:00
9a35aa2d20 修复 IsIP 正则首段上限223不对称(四段统一0-255);附 StringExtension/LinqExtension/XPoint 行为测试 2026-10-21 20:42:27 +08:00
b93493a15f 修复 BitTool uint 版 bit31 int 移位溢出;新建 xUnit 测试项目并入解决方案 2026-10-21 20:42:25 +08:00