C# Class NuGet.VisualStudio.RecentPackageRepository

Inheritance: IPackageRepository, IRecentPackageRepository
Datei anzeigen Open project: xero-github/Nuget

Public Methods

Method Description
AddPackage ( IPackage package ) : void
Clear ( ) : void
GetPackages ( ) : IQueryable
RemovePackage ( IPackage package ) : void
UpdatePackage ( IPackage package ) : void

Private Methods

Method Description
AddRecentPackage ( RecentPackage package, bool updateOnly = false ) : void

Add the specified package to the list.

ConvertToRecentPackage ( IPackage package, System.DateTime lastUsedDate ) : RecentPackage
FilterPackages ( IEnumerable packagesMetadata, IEnumerable allPackages ) : IEnumerable

Select packages from 'allPackages' which match the Ids and Versions from packagesMetadata.

GetUniqueTime ( ) : System.DateTime
LoadPackageMetadataFromSettingsStore ( ) : IEnumerable
LoadPackagesFromSettingsStore ( IPackageRepository repository ) : void
OnBeginShutdown ( ) : void
PackageSourcesChanged ( ) : bool

Determines if package sources have changed since the last time we queried.

RecentPackageRepository ( DTE dte, IPackageRepositoryFactory repositoryFactory, IPackageSourceProvider packageSourceProvider, IPersistencePackageSettingsManager settingsManager, IPackageRepository cacheRepository ) : System
RecentPackageRepository ( IPackageRepositoryFactory repositoryFactory, IPersistencePackageSettingsManager settingsManager ) : System
SavePackagesToSettingsStore ( ) : void
UpdatePackageCache ( IPackageRepository repository ) : void

Updates the package cache by ensuring all cached packages exist in the repository.

Method Details

AddPackage() public method

public AddPackage ( IPackage package ) : void
package IPackage
return void

Clear() public method

public Clear ( ) : void
return void

GetPackages() public method

public GetPackages ( ) : IQueryable
return IQueryable

RemovePackage() public method

public RemovePackage ( IPackage package ) : void
package IPackage
return void

UpdatePackage() public method

public UpdatePackage ( IPackage package ) : void
package IPackage
return void