public ExtensionManagerDialogViewModel(IExtensionManager extensionManager) { Title = "Extensions"; _extensionManager = extensionManager; _installedExtensions = new ObservableCollection <IExtensionManifest>(_extensionManager.GetInstalledExtensions()); }
private static IEnumerable <IInstalledToolkitInfo> GetInstalledToolkits(IExtensionManager extensionManager, ISchemaReader reader) { Guard.NotNull(() => extensionManager, extensionManager); return(extensionManager.GetInstalledExtensions() .Where(extension => IsToolkit(extension)) .Select(extension => TryCreateRegistration(reader, extension)) .Where(registration => registration != null)); }
private static IEnumerable<IInstalledToolkitInfo> GetInstalledToolkits(IExtensionManager extensionManager, ISchemaReader reader) { Guard.NotNull(() => extensionManager, extensionManager); return extensionManager.GetInstalledExtensions() .Where(extension => IsToolkit(extension)) .Select(extension => TryCreateRegistration(reader, extension)) .Where(registration => registration != null); }