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
파일 보기 프로젝트 열기: xero-github/Nuget

공개 메소드들

메소드 설명
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