void context_PostMapRequestHandler(object sender, EventArgs e) { HttpContext cont = ((HttpApplication)sender).Context; if (cont != null && QueryTool.IsCallMvc(cont.Request.Url) && !QueryTool.IsProxyCall(cont) && QueryTool.IsTaurusSuffix(cont.Request.Url)) { cont.Handler = SessionHandler.Instance;//注册Session } }
void context_AcquireRequestState(object sender, EventArgs e) { HttpContext cont = ((HttpApplication)sender).Context; if (cont != null && QueryTool.IsCallMvc(cont.Request.Url) && !QueryTool.IsProxyCall(cont) && QueryTool.IsTaurusSuffix(cont.Request.Url)) { CheckCORS(cont); ReplaceOutput(cont); InvokeClass(cont); } }