C# Class NuGet.Commands.InstallCommand

Inheritance: Command
Afficher le fichier Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Свойство Type Description
EnsureFileExists void
EnsurePackageRestoreConsent void
ExecuteInParallel bool
ExecuteLocked void
GenerateUniqueToken string
GetRepository IPackageRepository
InstallCommand System
InstallPackage bool
InstallPackagesFromConfigFile void
IsPackageInstalled bool

Méthodes publiques

Méthode Description
ExecuteCommand ( ) : void

Méthodes protégées

Méthode Description
CreateFileSystem ( ) : IFileSystem
CreatePackageManager ( IFileSystem fileSystem ) : IPackageManager
GetPackageReferenceFile ( string path ) : PackageReferenceFile
InstallCommand ( IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider sourceProvider, ISettings configSettings, IPackageRepository cacheRepository ) : System

Private Methods

Méthode Description
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

Method Details

CreateFileSystem() protected méthode

protected CreateFileSystem ( ) : IFileSystem
Résultat IFileSystem

CreatePackageManager() protected méthode

protected CreatePackageManager ( IFileSystem fileSystem ) : IPackageManager
fileSystem IFileSystem
Résultat IPackageManager

ExecuteCommand() public méthode

public ExecuteCommand ( ) : void
Résultat void

GetPackageReferenceFile() protected méthode

protected GetPackageReferenceFile ( string path ) : PackageReferenceFile
path string
Résultat PackageReferenceFile

InstallCommand() protected méthode

protected InstallCommand ( IPackageRepositoryFactory packageRepositoryFactory, IPackageSourceProvider sourceProvider, ISettings configSettings, IPackageRepository cacheRepository ) : System
packageRepositoryFactory IPackageRepositoryFactory
sourceProvider IPackageSourceProvider
configSettings ISettings
cacheRepository IPackageRepository
Résultat System