From 559890c482f5973f06aafdfec9550fee5ba3c7f2 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 17:02:15 +0800
Subject: [PATCH] feat: CAN 模拟器 TCP 化 + 多设备并发调试 + 后台生命周期管理

---
 CanSimulatorServer/CanSimulatorServer.App/App.cs |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/CanSimulatorServer/CanSimulatorServer.App/App.cs b/CanSimulatorServer/CanSimulatorServer.App/App.cs
new file mode 100644
index 0000000..e7bfc22
--- /dev/null
+++ b/CanSimulatorServer/CanSimulatorServer.App/App.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Windows;
+using log4net.Config;
+
+namespace CanSimulatorServer.App
+{
+    /// <summary>
+    /// CAN 妯℃嫙鍣ㄦ湇鍔¤繘绋嬪叆鍙o紙绾墜鍔ㄥ惎鍔紝涓荤▼搴忎笌 DeviceBroker 鍧囦笉鎷夎捣锛夈��
+    /// 璇诲彇 App.config 鐨� ServerPort / ListenOnAllInterfaces锛屾媺璧� TcpSimulatorHost 骞舵樉绀虹洃鎺� UI銆�
+    /// </summary>
+    public class App : Application
+    {
+        protected override void OnStartup(StartupEventArgs e)
+        {
+            base.OnStartup(e);
+            XmlConfigurator.Configure();
+
+            MainWindow = new MainWindow
+            {
+                Title = "CAN 妯℃嫙鍣ㄦ湇鍔� (CanSimulatorServer)",
+                Width = 1000,
+                Height = 680,
+                WindowStartupLocation = WindowStartupLocation.CenterScreen
+            };
+            MainWindow.Show();
+        }
+    }
+
+    /// <summary>鏃� XAML 鍚姩鍣細SDK 宸ョ▼鏄惧紡鍏ュ彛銆�</summary>
+    public static class Entry
+    {
+        [STAThread]
+        public static void Main()
+        {
+            var app = new App();
+            app.Run();
+        }
+    }
+}

--
Gitblit v1.9.1