C# Class NuGet.LocalPackageRepository

Inheritance: IPackageRepository
Afficher le fichier Open project: xero-github/Nuget Class Usage Examples

Méthodes publiques

Méthode Description
AddPackage ( IPackage package ) : void
Exists ( string packageId, SemanticVersion version ) : bool
FindPackage ( string packageId, SemanticVersion version ) : IPackage
GetPackageLookupPaths ( string packageId, SemanticVersion version ) : IEnumerable
GetPackages ( ) : IQueryable
LocalPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
LocalPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem, bool enableCaching ) : System
LocalPackageRepository ( string physicalPath ) : System
LocalPackageRepository ( string physicalPath, bool enableCaching ) : System
RemovePackage ( IPackage package ) : void

Méthodes protégées

Méthode Description
GetPackageFilePath ( IPackage package ) : string
GetPackageFilePath ( string id, SemanticVersion version ) : string
OpenPackage ( string path ) : IPackage

Private Methods

Méthode Description
FileNameMatchesPattern ( string packageId, SemanticVersion version, string path ) : bool
FindPackage ( IPackage>.Func openPackage, string packageId, SemanticVersion version ) : IPackage
GetPackage ( IPackage>.Func openPackage, string path ) : IPackage
GetPackageFiles ( string filter = null ) : IEnumerable
GetPackages ( IPackage>.Func openPackage ) : IEnumerable

Method Details

AddPackage() public méthode

public AddPackage ( IPackage package ) : void
package IPackage
Résultat void

Exists() public méthode

public Exists ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
Résultat bool

FindPackage() public méthode

public FindPackage ( string packageId, SemanticVersion version ) : IPackage
packageId string
version SemanticVersion
Résultat IPackage

GetPackageFilePath() protected méthode

protected GetPackageFilePath ( IPackage package ) : string
package IPackage
Résultat string

GetPackageFilePath() protected méthode

protected GetPackageFilePath ( string id, SemanticVersion version ) : string
id string
version SemanticVersion
Résultat string

GetPackageLookupPaths() public méthode

public GetPackageLookupPaths ( string packageId, SemanticVersion version ) : IEnumerable
packageId string
version SemanticVersion
Résultat IEnumerable

GetPackages() public méthode

public GetPackages ( ) : IQueryable
Résultat IQueryable

LocalPackageRepository() public méthode

public LocalPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem ) : System
pathResolver IPackagePathResolver
fileSystem IFileSystem
Résultat System

LocalPackageRepository() public méthode

public LocalPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem, bool enableCaching ) : System
pathResolver IPackagePathResolver
fileSystem IFileSystem
enableCaching bool
Résultat System

LocalPackageRepository() public méthode

public LocalPackageRepository ( string physicalPath ) : System
physicalPath string
Résultat System

LocalPackageRepository() public méthode

public LocalPackageRepository ( string physicalPath, bool enableCaching ) : System
physicalPath string
enableCaching bool
Résultat System

OpenPackage() protected méthode

protected OpenPackage ( string path ) : IPackage
path string
Résultat IPackage

RemovePackage() public méthode

public RemovePackage ( IPackage package ) : void
package IPackage
Résultat void