C# Class NuGet.VisualStudio.VsPackageSourceRepository

Inheritance: IServiceBasedRepository, ICloneableRepository, IPackageLookup, ILatestPackageLookup, IOperationAwareRepository
显示文件 Open project: themotleyfool/NuGet

Public Methods

Method Description
AddPackage ( IPackage package ) : void
Clone ( ) : IPackageRepository
Exists ( string packageId, SemanticVersion version ) : bool
FindPackage ( string packageId, SemanticVersion version ) : IPackage
FindPackagesById ( string packageId ) : IEnumerable
GetPackages ( ) : IQueryable
GetUpdates ( IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFramework ) : IEnumerable
RemovePackage ( IPackage package ) : void
Search ( string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions ) : IQueryable
StartOperation ( string operation ) : IDisposable

Private Methods

Method Description
GetActiveRepository ( ) : IPackageRepository
StartOperation ( IPackageRepository activeRepository ) : IDisposable
VsPackageSourceRepository ( IPackageRepositoryFactory repositoryFactory, IVsPackageSourceProvider packageSourceProvider ) : System

Method Details

AddPackage() public method

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

Clone() public method

public Clone ( ) : IPackageRepository
return IPackageRepository

Exists() public method

public Exists ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
return bool

FindPackage() public method

public FindPackage ( string packageId, SemanticVersion version ) : IPackage
packageId string
version SemanticVersion
return IPackage

FindPackagesById() public method

public FindPackagesById ( string packageId ) : IEnumerable
packageId string
return IEnumerable

GetPackages() public method

public GetPackages ( ) : IQueryable
return IQueryable

GetUpdates() public method

public GetUpdates ( IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFramework ) : IEnumerable
packages IEnumerable
includePrerelease bool
includeAllVersions bool
targetFramework IEnumerable
return IEnumerable

RemovePackage() public method

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

Search() public method

public Search ( string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions ) : IQueryable
searchTerm string
targetFrameworks IEnumerable
allowPrereleaseVersions bool
return IQueryable

StartOperation() public method

public StartOperation ( string operation ) : IDisposable
operation string
return IDisposable