From b544d5cccd76735e034c8055918a50927b437474 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期二, 10 十一月 2026 08:29:04 +0800
Subject: [PATCH] fix: 维护模式重复进入失败与按钮灰死 + Broker 并发验证用例
---
Aging.ResourceContracts/IpcEnvelope.cs | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/Aging.ResourceContracts/IpcEnvelope.cs b/Aging.ResourceContracts/IpcEnvelope.cs
new file mode 100644
index 0000000..65bbef0
--- /dev/null
+++ b/Aging.ResourceContracts/IpcEnvelope.cs
@@ -0,0 +1,33 @@
+namespace Aging.ResourceContracts
+{
+ /// <summary>IPC 娑堟伅绫诲瀷甯搁噺锛圡VP 浠呭洓绉嶏級銆�</summary>
+ public static class IpcMessageTypes
+ {
+ public const string Hello = "Hello"; // 鎻℃墜锛氬洖 epoch/configHash
+ public const string SubmitTask = "SubmitTask"; // body=DeviceOperation
+ public const string CancelTask = "CancelTask";
+ public const string ProbeReadback = "ProbeReadback"; // 鎭㈠鍥炴敹鍓嶇殑璇诲洖鎺㈡祴
+ }
+
+ /// <summary>璇锋眰/鍝嶅簲鍏卞悓灏佸銆傚崗璁増鏈笉鍖归厤鐩存帴鎷掔粷杩炴帴銆�</summary>
+ public sealed class IpcEnvelope
+ {
+ public int ProtocolVersion { get; set; } = 1;
+ public string MessageType { get; set; } = "";
+ public string RequestId { get; set; } = "";
+ public string CorrelationId { get; set; } = "";
+ public string ClientInstanceId { get; set; } = "";
+ public string AuthorityId { get; set; } = "";
+ public string ConfigHash { get; set; } = "";
+ public long DeadlineUtcMs { get; set; }
+ public string BodyJson { get; set; } = "{}";
+ }
+
+ public sealed class HelloResult
+ {
+ public long ServerEpoch { get; set; }
+ public string ConfigHash { get; set; } = "";
+ public int ProtocolVersion { get; set; } = 1;
+ public string BrokerId { get; set; } = "";
+ }
+}
--
Gitblit v1.9.1