Exemple #1
0
        public TepWebContext(PagePrivileges privileges) : base(privileges)
        {
            HideMessages = true;
            System.Configuration.Configuration rootWebConfig =
                System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(null);
            BaseUrl = rootWebConfig.AppSettings.Settings["BaseUrl"].Value;

            HttpContext.Current.Session.Timeout = 1440;
            this.DynamicDbConnectionsGlobal     = true;
        }
Exemple #2
0
        public new static TepWebContext GetWebContext(PagePrivileges privileges)
        {
            TepWebContext result = new TepWebContext(privileges);

            return(result);
        }