C# Класс NuGet.MachineCache

The machine cache represents a location on the machine where packages are cached. It is a specific implementation of a local repository and can be used as such.
Наследование: LocalPackageRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
AddPackage ( IPackage package ) : void
Clear ( ) : void
Exists ( string packageId, SemanticVersion version ) : bool

Защищенные методы

Метод Описание
GetPackageFilePath ( IPackage package ) : string
GetPackageFilePath ( string id, SemanticVersion version ) : string

Приватные методы

Метод Описание
CreateDefault ( Func getCachePath ) : MachineCache

Creates a Machine Cache instance, assigns it to the instance variable and returns it.

GetCachePath ( ) : string

Determines the cache path to use for NuGet.exe. By default, NuGet caches files under %LocalAppData%\NuGet\Cache. This path can be overridden by specifying a value in the NuGetCachePath environment variable.

GetCachePath ( string>.Func getEnvironmentVariable, string>.Func getFolderPath ) : string
MachineCache ( IFileSystem fileSystem ) : System
TryAct ( System.Action action ) : void
TryClear ( IEnumerable files ) : void

Описание методов

AddPackage() публичный Метод

public AddPackage ( IPackage package ) : void
package IPackage
Результат void

Clear() публичный Метод

public Clear ( ) : void
Результат void

Exists() публичный Метод

public Exists ( string packageId, SemanticVersion version ) : bool
packageId string
version SemanticVersion
Результат bool

GetPackageFilePath() защищенный Метод

protected GetPackageFilePath ( IPackage package ) : string
package IPackage
Результат string

GetPackageFilePath() защищенный Метод

protected GetPackageFilePath ( string id, SemanticVersion version ) : string
id string
version SemanticVersion
Результат string