C# Class NuGet.Server.Infrastructure.ServerPackageRepository

Inheritance: LocalPackageRepository, IServerPackageRepository
显示文件 Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Property Type Description
CalculateDerivedData NuGet.Server.Infrastructure.DerivedPackageData
IsCompatible bool

Public Methods

Method Description
AddPackage ( IPackage package ) : void
FindPackagesById ( string packageId ) : IEnumerable
GetMetadataPackage ( IPackage package ) : Package
GetPackagesWithDerivedData ( ) : IQueryable
GetUpdates ( IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFramework ) : IEnumerable
RemovePackage ( IPackage package ) : void
RemovePackage ( string packageId, SemanticVersion version ) : void
Search ( string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions ) : IQueryable
ServerPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
ServerPackageRepository ( string path ) : System

Protected Methods

Method Description
OpenPackage ( string path ) : IPackage

Private Methods

Method Description
CalculateDerivedData ( IPackage package, string path ) : NuGet.Server.Infrastructure.DerivedPackageData
IsCompatible ( FrameworkName frameworkName, IPackage package ) : bool

Method Details

AddPackage() public method

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

FindPackagesById() public method

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

GetMetadataPackage() public method

public GetMetadataPackage ( IPackage package ) : Package
package IPackage
return NuGet.Server.DataServices.Package

GetPackagesWithDerivedData() public method

public GetPackagesWithDerivedData ( ) : 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

OpenPackage() protected method

protected OpenPackage ( string path ) : IPackage
path string
return IPackage

RemovePackage() public method

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

RemovePackage() public method

public RemovePackage ( string packageId, SemanticVersion version ) : void
packageId string
version SemanticVersion
return void

Search() public method

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

ServerPackageRepository() public method

public ServerPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
pathResolver IPackagePathResolver
fileSystem IFileSystem
return System

ServerPackageRepository() public method

public ServerPackageRepository ( string path ) : System
path string
return System