From 6367b170a3db4df6e43a8962b2f17b06a020b913 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 16 一月 2026 15:36:40 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
---
WebAPI/Global.asax.cs | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/WebAPI/Global.asax.cs b/WebAPI/Global.asax.cs
index 3e4bc83..54ba068 100644
--- a/WebAPI/Global.asax.cs
+++ b/WebAPI/Global.asax.cs
@@ -4,14 +4,22 @@
using System.Web;
using System.Web.Http;
using System.Web.Routing;
-
+using WebApiWithFleck;
namespace WebAPI
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
+ // webSocket 鏈嶅姟
+ WebSocketServer.Start();
GlobalConfiguration.Configure(WebApiConfig.Register);
}
+
+ // 搴旂敤鍏抽棴鏃讹紝鍋滄鏈嶅姟锛岄槻姝㈡硠闇�
+ protected void Application_End()
+ {
+ WebSocketServer.Stop();
+ }
}
}
--
Gitblit v1.9.1