C# 클래스 NuGet.Commands.InstallCommand

상속: Command
파일 보기 프로젝트 열기: themotleyfool/NuGet 1 사용 예제들

Private Properties

프로퍼티 타입 설명
EnsureFileExists void
EnsurePackageRestoreConsent void
ExecuteInParallel bool
ExecuteLocked void
GenerateUniqueToken string
GetRepository IPackageRepository
InstallCommand System
InstallPackage bool
InstallPackagesFromConfigFile void
IsPackageInstalled bool

공개 메소드들

메소드 설명
ExecuteCommand ( ) : void

보호된 메소드들

메소드 설명
CreateFileSystem ( ) : IFileSystem
CreatePackageManager ( IFileSystem fileSystem ) : IPackageManager
GetPackageReferenceFile ( string path ) : PackageReferenceFile
InstallCommand ( IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider sourceProvider, ISettings configSettings, IPackageRepository cacheRepository ) : System

비공개 메소드들

메소드 설명
EnsureFileExists ( IFileSystem fileSystem, string configFilePath ) : void
EnsurePackageRestoreConsent ( bool packageRestoreConsent ) : void
ExecuteInParallel ( IFileSystem fileSystem, List packageReferences ) : bool
ExecuteLocked ( string name, System.Action action ) : void
GenerateUniqueToken ( IPackageManager packageManager, string packageId, SemanticVersion version ) : string

We want to base the lock name off of the full path of the package, however, the Mutex looks for files on disk if a path is given. Additionally, it also fails if the string is longer than 256 characters. Therefore we obtain a base-64 encoded hash of the path.

GetRepository ( ) : IPackageRepository
InstallCommand ( IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider sourceProvider ) : System
InstallPackage ( IFileSystem fileSystem, string packageId, SemanticVersion version, bool ignoreDependencies, bool packageRestoreConsent, string operation ) : bool
InstallPackagesFromConfigFile ( IFileSystem fileSystem, PackageReferenceFile file ) : void
IsPackageInstalled ( LocalPackageRepository packageRepository, IFileSystem fileSystem, string packageId, SemanticVersion version ) : bool

메소드 상세

CreateFileSystem() 보호된 메소드

protected CreateFileSystem ( ) : IFileSystem
리턴 IFileSystem

CreatePackageManager() 보호된 메소드

protected CreatePackageManager ( IFileSystem fileSystem ) : IPackageManager
fileSystem IFileSystem
리턴 IPackageManager

ExecuteCommand() 공개 메소드

public ExecuteCommand ( ) : void
리턴 void

GetPackageReferenceFile() 보호된 메소드

protected GetPackageReferenceFile ( string path ) : PackageReferenceFile
path string
리턴 PackageReferenceFile

InstallCommand() 보호된 메소드

protected InstallCommand ( IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider sourceProvider, ISettings configSettings, IPackageRepository cacheRepository ) : System
packageRepositoryFactory IPackageRepositoryFactory
sourceProvider IPackageSourceProvider
configSettings ISettings
cacheRepository IPackageRepository
리턴 System