| | |
| | | using log4net.Config; |
| | | using Quartz; |
| | | using Quartz.Impl; |
| | | using Quartz.Impl.Triggers; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | |
| | | using System.Web.Optimization; |
| | | using System.Web.Routing; |
| | | using System.Web.SessionState; |
| | | using VueWebApi.TimeTick; |
| | | using VueWebApi.Tools; |
| | | |
| | | namespace VueWebApi |
| | |
| | | this.PostAuthenticateRequest += (sender, e) => HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required); |
| | | base.Init(); |
| | | } |
| | | void Session_Start(object sender, EventArgs e) |
| | | { |
| | | string sessionId = Session.SessionID; |
| | | } |
| | | protected void Application_Start() |
| | | { |
| | | AreaRegistration.RegisterAllAreas(); |
| | |
| | | //应用程序启动时,自动加载配置log4Net |
| | | //XmlConfigurator.Configure(); |
| | | log4net.Config.XmlConfigurator.Configure(new FileInfo(Server.MapPath("~/log4net.config"))); |
| | | |
| | | } |
| | | } |
| | | } |