llj
3 天以前 b4dba39ce6afc201ede288ada4295a5fa345092f
WebAPI/Global.asax.cs
@@ -3,6 +3,7 @@
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using WebApiWithFleck;
namespace WebAPI
@@ -11,15 +12,9 @@
    {
        protected void Application_Start()
        {
            // webSocket 服务
            WebSocketServer.Start();
            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
        // 应用关闭时,停止服务,防止泄露
        protected void Application_End()
        {
            WebSocketServer.Stop();
            GlobalConfiguration.Configure(WebApiConfig.Register);
           // FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
        }
    }
}