Beispiel #1
0
 public IQueryable <IPackage> GetPackagesWithUpdates(string searchTerms)
 {
     return(GetPackages(LocalRepository.GetUpdates(
                            SourceRepository.GetPackages(),
                            includePrerelease: true,
                            includeAllVersions: true)
                        .AsQueryable(), searchTerms));
 }
        public override IQueryable <IPackage> GetPackages()
        {
            IEnumerable <IPackage> repositoryPackages = SourceRepository.GetPackages().ToList();
            IEnumerable <IPackage> packages           = from plugin in _descriptors
                                                        let id = PackagingUtils.BuildPackageId(plugin.SystemName, "Plugin")
                                                                 let version = plugin.Version != null ? new SemanticVersion(plugin.Version) : null
                                                                               let package = repositoryPackages.FirstOrDefault(p => p.Id == id && (version == null || p.Version == version))
                                                                                             where package != null
                                                                                             select package;

            return(packages.AsQueryable());
        }
        public override IQueryable <IPackage> GetPackages()
        {
            IEnumerable <IPackage> repositoryPackages = SourceRepository.GetPackages().ToList();
            IEnumerable <IPackage> packages           = from theme in _themeManifests
                                                        let id = PackagingUtils.BuildPackageId(theme.ThemeName, "Theme")
                                                                 let version = theme.Version != null ? new SemanticVersion(theme.Version) : null
                                                                               let package = repositoryPackages.FirstOrDefault(p => p.Id == id && (version == null || p.Version == version))
                                                                                             where package != null
                                                                                             select package;

            return(packages.AsQueryable());
        }