예제 #1
0
        public ExtensionManagerDialogViewModel(IExtensionManager extensionManager)
        {
            Title = "Extensions";

            _extensionManager    = extensionManager;
            _installedExtensions = new ObservableCollection <IExtensionManifest>(_extensionManager.GetInstalledExtensions());
        }
예제 #2
0
        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);
        }