交运行工位桩:三口契约、运行服务、六态 VM、跨线程切 UI。

采集/PLC/Inspect 均为桩,验收 1–8 可测。不部署现场。
This commit is contained in:
C# 开发
2026-08-19 01:16:32 +00:00
commit bcddcd0bed
36 changed files with 1432 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# VisionHost 运行工位桩
本迭代只交操作员运行壳(验收 1–7)。采集 / PLC / Inspect 均为桩,不做真检测、不改主干、不部署。
## 工程
- `VisionHost.Contracts` 三口:`IFrameSource` / `IInspectService` / `IPlcIo`
- `VisionHost.Runtime` 运行服务 + `RunViewModel`(绑定名对齐 WPF 骨架)
- `VisionHost.Runtime.Tests` 运行壳用例
- `VisionHost.App` 操作员运行页(WPF,hex 转笔刷)
可点界面:`src/VisionHost.App`Windows)。`LastResultBrush`/`AlarmBrush``HexToBrushConverter`
## 行为
- 确认启动才清零并开跑;停机保持计数
- 未连接 / 重连中:不弹确认,`CanStart=false`
- Inspect 桩:14 OK,第 5 拍 `NG STUB`,拍号在算法桩内计
- 六态由运行服务推,VM 不自判
## 构建
```
export PATH="$HOME/.dotnet:$PATH"
dotnet test VisionHost.sln
```