C# Class NuGet.LocalPackageRepository

Inheritance: IPackageRepository
Exibir arquivo Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
GetPackageFilePath ( IPackage package ) : string
GetPackageFilePath ( string id, SemanticVersion version ) : string
OpenPackage ( string path ) : IPackage

Private Methods

Method 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 method

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

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

GetPackageFilePath() protected method

protected GetPackageFilePath ( IPackage package ) : string
package IPackage
return string

GetPackageFilePath() protected method

protected GetPackageFilePath ( string id, SemanticVersion version ) : string
id string
version SemanticVersion
return string

GetPackageLookupPaths() public method

public GetPackageLookupPaths ( string packageId, SemanticVersion version ) : IEnumerable
packageId string
version SemanticVersion
return IEnumerable

GetPackages() public method

public GetPackages ( ) : IQueryable
return IQueryable

LocalPackageRepository() public method

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

LocalPackageRepository() public method

public LocalPackageRepository ( IPackagePathResolver pathResolver, IFileSystem fileSystem, bool enableCaching ) : System
pathResolver IPackagePathResolver
fileSystem IFileSystem
enableCaching bool
return System

LocalPackageRepository() public method

public LocalPackageRepository ( string physicalPath ) : System
physicalPath string
return System

LocalPackageRepository() public method

public LocalPackageRepository ( string physicalPath, bool enableCaching ) : System
physicalPath string
enableCaching bool
return System

OpenPackage() protected method

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

RemovePackage() public method

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