C# Class Microsoft.PackageManagement.NuGetProvider.LocalPackageRepository

Package repository for downloading data from file repositories
Inheritance: IPackageRepository
Exibir arquivo Open project: OneGet/NuGetProvider

Public Methods

Method Description
FindPackage ( string packageId, SemanticVersion version, NuGetRequest request ) : IPackage

Find-Package

FindPackagesById ( string packageId, NuGetRequest request ) : IEnumerable

Find-Package based the given Id

LocalPackageRepository ( string physicalPath, NuGetRequest request ) : System

Ctor's

Search ( string searchTerm, NuGetRequest nugetRequest ) : IEnumerable

Search the entire repository for the case when a user does not provider package name or uses wildcards in the name.

Private Methods

Method Description
FileNameMatchesPattern ( string packageId, SemanticVersion version, string path ) : bool

True if the the file contains the right id and version.

FindPackage ( Func openPackage, string packageId, SemanticVersion version, NuGetRequest nugetRequest ) : IPackage

Find-Package

FindPackagesById ( Func openPackage, string packageId, Request request ) : IEnumerable

Find-Package based the given Id

GetPackage ( Func openPackage, string path, Request request ) : IPackage

Finding the package in the file repository

GetPackageFiles ( string filter = null ) : IEnumerable

Get the .nupkg files

GetPackageLookupPaths ( string packageId, SemanticVersion version ) : IEnumerable

Find the package files (.nupkg or .nuspec).

GetPackages ( Func openPackage, string packageId, IEnumerable packagePaths, Request request ) : IEnumerable

Finding the packages in the file repository

OpenPackage ( string path, Request request ) : IPackage

A delegate used for finding the package.

ProcessZipPackage ( string nupkgPath ) : PackageBase

Unzip the package and create PackageImpl object

SearchImpl ( string searchTerm, NuGetRequest nugetRequest ) : IEnumerable

Method Details

FindPackage() public method

Find-Package
public FindPackage ( string packageId, SemanticVersion version, NuGetRequest request ) : IPackage
packageId string Package id
version SemanticVersion Package Name
request NuGetRequest
return IPackage

FindPackagesById() public method

Find-Package based the given Id
public FindPackagesById ( string packageId, NuGetRequest request ) : IEnumerable
packageId string Package Id
request NuGetRequest
return IEnumerable

LocalPackageRepository() public method

Ctor's
public LocalPackageRepository ( string physicalPath, NuGetRequest request ) : System
physicalPath string
request NuGetRequest
return System

Search() public method

Search the entire repository for the case when a user does not provider package name or uses wildcards in the name.
public Search ( string searchTerm, NuGetRequest nugetRequest ) : IEnumerable
searchTerm string The Searchterm
nugetRequest NuGetRequest
return IEnumerable