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; }
public new static TepWebContext GetWebContext(PagePrivileges privileges) { TepWebContext result = new TepWebContext(privileges); return(result); }