Ejemplo n.º 1
0
        internal static SessionBase CreateSessionObject()
        {
            SessionBase session = (SessionBase)Activator.CreateInstance(WebAppConfig.SessionType);

            WebAppConfig.FireSessionCreated(session);
            return(session);
        }
Ejemplo n.º 2
0
        public static void CreateContext(HttpContext httpContext)
        {
            WebAppConfig.Init();

            HttpContextBase context = new OnlineHttpContext(httpContext);

            Current = context;

            if (httpContext.Session != null)
            {
                context.SessionObject = WebAppHelper.CreateSessionObject();
            }
        }
Ejemplo n.º 3
0
        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));
        }