GetLatestVersions() public méthode

public GetLatestVersions ( ) : List
Résultat List
Exemple #1
0
        public NuGetSubstitute(string nugetDbConnection)
        {
            m_db = new NuGetDb(nugetDbConnection);

            m_thisBranchPackages = m_db.GetLatestVersions()
                                   .Where(p => p.Branch == Args.BranchName.ToLower())
                                   .ToList();
        }
        public void Load()
        {
            var allLocalPackages = m_db.GetLatestVersions().ToList();

            m_localPackages = allLocalPackages
                              .Where(p => p.Branch == null)
                              .ToDictionary(p => p.Id, StringComparer.OrdinalIgnoreCase);

            if (Args.BranchName != null)
            {
                foreach (var p in allLocalPackages.Where(p => p.Branch == Args.BranchName.ToLower()))
                {
                    m_localPackages[p.Id] = p;
                }
            }
        }
 public void Load()
 {
     m_localPackages = m_db.GetLatestVersions().ToDictionary(p => p.Id, StringComparer.OrdinalIgnoreCase);
 }