public void Load() { if (!CoreExtensionApplication.CoreConsole) { try { if (File.Exists(DataPath + "\\IronstoneCoreUI.dll")) { ExtensionLoader.Load(DataPath + "\\IronstoneCoreUI.dll"); } else { ExtensionLoader.Load(BinPath + "\\IronstoneCoreUI.dll"); } _logger.Entry("Core UI library loaded.", Severity.Debug); } catch (System.Exception e) { _logger.Entry($"Unable to load Core UI library", Severity.Crash); _logger.LogException(e); throw; } } foreach (Module m in _loadedModules.Values.Where(m => m.ObjectModel)) { if (m.Authenticated) { LoadAssembly(m.Path); } } //Check if authenticated, otherwise block the auto loading if (_authentication.Authenticated()) { foreach (Module m in _loadedModules.Values.Where(m => !m.ObjectModel)) { if (m.Authenticated) { LoadAssembly(m.Path); } } } //Once modules loaded, create any required stores for documents that might already open. _dataService.CreateStoresFromAppDocumentManager(); }
public void Load() { if (!CoreExtensionApplication.CoreConsole) { try { if (File.Exists(DataPath + "\\IronstoneCoreUI.dll")) { ExtensionLoader.Load(DataPath + "\\IronstoneCoreUI.dll"); } else { ExtensionLoader.Load(BinPath + "\\IronstoneCoreUI.dll"); } _logger.LogDebug("Core UI library loaded."); } catch (System.Exception e) { _logger.LogCritical(e, $"Unable to load Core UI library"); throw; } } foreach (Module m in _loadedModules.Values.Where(m => m.ObjectModel)) { if (m.Authenticated) { LoadAssembly(m.Path); } } //Check if authenticated, otherwise block the auto loading if (_authentication.Authenticated()) { foreach (Module m in _loadedModules.Values.Where(m => !m.ObjectModel)) { if (m.Authenticated) { LoadAssembly(m.Path); } } } }