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.Infrastructure/Broker/BrokerPipeName.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Aging.Infrastructure/Broker/BrokerPipeName.cs b/Aging.Infrastructure/Broker/BrokerPipeName.cs
new file mode 100644
index 0000000..46ff88c
--- /dev/null
+++ b/Aging.Infrastructure/Broker/BrokerPipeName.cs
@@ -0,0 +1,19 @@
+using System;
+using Aging.ResourceContracts;
+
+namespace Aging.Infrastructure.Broker
+{
+ /// <summary>
+ /// DeviceBroker 鍛藉悕绠¢亾鏈嶅姟鍚嶇害瀹氾細aging.{brokerId}.v{鍗忚涓荤増鏈瑌
+ /// 锛圴3.0 搂13锛氭湇鍔″悕鍚� Station/Broker/鍗忚涓荤増鏈級銆�
+ /// </summary>
+ public static class BrokerPipeName
+ {
+ public static string For(string brokerId)
+ {
+ if (string.IsNullOrWhiteSpace(brokerId))
+ throw new ArgumentException("brokerId 涓嶈兘涓虹┖", nameof(brokerId));
+ return $"aging.{brokerId.Trim().ToLowerInvariant()}.v{BrokerIpc.ProtocolVersion}";
+ }
+ }
+}
--
Gitblit v1.9.1