internal static SessionBase CreateSessionObject() { SessionBase session = (SessionBase)Activator.CreateInstance(WebAppConfig.SessionType); WebAppConfig.FireSessionCreated(session); return(session); }
public static void CreateContext(HttpContext httpContext) { WebAppConfig.Init(); HttpContextBase context = new OnlineHttpContext(httpContext); Current = context; if (httpContext.Session != null) { context.SessionObject = WebAppHelper.CreateSessionObject(); } }
internal static ControllerAction GetControllerAction(string relativePath, string pathInfo) { if (string.IsNullOrEmpty(pathInfo)) { pathInfo = "Run"; } else { pathInfo = pathInfo.Substring(1); } ControllerClass controllerClass = WebAppConfig.GetControllerClass(UrlHelper.GetUrlPathWithoutExtension(relativePath).ToLower()); return(controllerClass == null ? null : new ControllerAction(controllerClass, pathInfo)); }