Web/App_Code/Global.asax.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI;
using System.Net;
using System.IO;
using WMPT.Common;
using System.Web.Routing;
using Combres;
/// <summary>
///Global 的摘要说明
/// </summary>
public class Global: System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.AddCombresRoute("Combres Route");
}
void Application_End(object sender, EventArgs e)
{
}
void Application_Error(object sender, EventArgs e)
{
//在出现未处理的错误时运行的代码
Exception ex = Server.GetLastError();
HttpException httpEx = ex as HttpException;
if (httpEx != null)
{
//404错误
if (httpEx.GetHttpCode() == 404)
{
// HttpContext.Current.Response.Status = "404 Not Found";
// HttpContext.Current.Response.Redirect("~/404.aspx");
return;
}
}
WMPT.AppLog.AppLog.Error(ex);
HJlog.toLog(ex.ToString());
if (WebUtility.GetConfigKey("isredirecterror") == "1")
{
Response.Redirect("~/404.aspx");
}
}
void Session_Start(object sender, EventArgs e)
{
//在新会话启动时运行的代码
后面还有 32 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
