protected void Application_Start() { RegisterRoutes(RouteTable.Routes); //启动顺序 CExceptionContainer_WuQi.Init(Server.MapPath(".")); string connstring = System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ToString(); CLogMarkContainer_WuQi markcontainers = new CLogMarkContainer_WuQi(connstring, new CHashCache_WuQi<uint, CLogMark_WuQi>(), new CCacheDependencyFull_WuQi<uint, CLogMark_WuQi>()); CLogMsgContainer_WuQi msgcontainers = new CLogMsgContainer_WuQi(connstring, new CHashCache_WuQi<uint, CLogMsg_WuQi>(), new CCacheDependencyTime_WuQi<uint, CLogMsg_WuQi>()); markcontainers.logmsgcontainer = msgcontainers; msgcontainers.RegisterTimeDependency(1); CLog_WuQi log = CLog_WuQi.GetLog(); log.InitLog(msgcontainers, markcontainers); CLog_WuQi.logstate_now = LOGSTATE.LogDebug; }
protected void Application_Start() { RegisterRoutes(RouteTable.Routes); //启动顺序 CExceptionContainer_WuQi.Init(Server.MapPath(".")); string connstring = System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ToString(); CLogMarkContainer_WuQi markcontainers = new CLogMarkContainer_WuQi(connstring, new CHashCache_WuQi <uint, CLogMark_WuQi>(), new CCacheDependencyFull_WuQi <uint, CLogMark_WuQi>()); CLogMsgContainer_WuQi msgcontainers = new CLogMsgContainer_WuQi(connstring, new CHashCache_WuQi <uint, CLogMsg_WuQi>(), new CCacheDependencyTime_WuQi <uint, CLogMsg_WuQi>()); markcontainers.logmsgcontainer = msgcontainers; msgcontainers.RegisterTimeDependency(1); CLog_WuQi log = CLog_WuQi.GetLog(); log.InitLog(msgcontainers, markcontainers); CLog_WuQi.logstate_now = LOGSTATE.LogDebug; }