33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
|
|
using AUTS.SystemTask;
|
|||
|
|
using FluentScheduler;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Http;
|
|||
|
|
using System.Web.Mvc;
|
|||
|
|
using System.Web.Optimization;
|
|||
|
|
using System.Web.Routing;
|
|||
|
|
|
|||
|
|
namespace AUTS.Web
|
|||
|
|
{
|
|||
|
|
public class MvcApplication : System.Web.HttpApplication
|
|||
|
|
{
|
|||
|
|
protected void Application_Start()
|
|||
|
|
{
|
|||
|
|
AreaRegistration.RegisterAllAreas();
|
|||
|
|
//GlobalConfiguration.Configure(WebApiConfig.Register);
|
|||
|
|
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
|||
|
|
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
|||
|
|
BundleConfig.RegisterBundles(BundleTable.Bundles);
|
|||
|
|
//自定义定时作业计划
|
|||
|
|
//JobManager.Initialize(new TimingPlanRegistry());
|
|||
|
|
//注册UDP监视
|
|||
|
|
//Services.UDPHelp.StartReceive();
|
|||
|
|
//(new System.Threading.Thread(new System.Threading.ThreadStart(Services.UDPHelp.CreatSocket))).Start(); //开辟一个新线程
|
|||
|
|
//(new System.Threading.Thread(new System.Threading.ThreadStart(Services.UDPHelp_New.CreatSocket))).Start(); //开辟一个新线程
|
|||
|
|
//Services.UDP.UDPHelp.RecevieAndSend();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|