internal static void LoadExtensions() { if (instance == null) { lock (Sync) { if (instance == null) { instance = new ExtensionContainer(); } } } }
public void Init(HttpApplication application) { if (null != application) { application.BeginRequest += new EventHandler(this.Application_BeginRequest); application.AuthorizeRequest += new EventHandler(this.Application_AuthorizeRequest); this.applicationInstalled = ConfigurationManager.AppSettings["Installer"] == null; this.currentApplicationType = HiConfiguration.GetConfig().AppLocation.CurrentApplicationType; this.CheckInstall(application.Context); if (this.currentApplicationType != ApplicationType.Installer) { try { ExhibFlat.Core.Jobs.Jobs.Instance().Start(); } catch (Exception) { } ExtensionContainer.LoadExtensions(); } } }