public OutOfProcessInstaller( IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, INuGetToolResolver toolResolver, INuGetContentResolver contentResolver, ICakeLog log, ICakeConfiguration config) { _fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); _environment = environment ?? throw new ArgumentNullException(nameof(environment)); _processRunner = processRunner ?? throw new ArgumentNullException(nameof(processRunner)); _toolResolver = toolResolver ?? throw new ArgumentNullException(nameof(toolResolver)); _contentResolver = contentResolver ?? throw new ArgumentNullException(nameof(contentResolver)); _log = log ?? throw new ArgumentNullException(nameof(log)); _config = config ?? throw new ArgumentNullException(nameof(config)); }
/// <summary> /// Initializes a new instance of the <see cref="NuGetPackageInstaller"/> class. /// </summary> /// <param name="fileSystem">The file system.</param> /// <param name="environment">The environment.</param> /// <param name="processRunner">The process runner.</param> /// <param name="toolResolver">The NuGet tool resolver.</param> /// <param name="contentResolver">The content resolver.</param> /// <param name="log">The log.</param> /// <param name="config">the configuration</param> public NuGetPackageInstaller( IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, INuGetToolResolver toolResolver, INuGetContentResolver contentResolver, ICakeLog log, ICakeConfiguration config) { if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } if (environment == null) { throw new ArgumentNullException(nameof(environment)); } if (processRunner == null) { throw new ArgumentNullException(nameof(processRunner)); } if (toolResolver == null) { throw new ArgumentNullException(nameof(toolResolver)); } if (contentResolver == null) { throw new ArgumentNullException(nameof(contentResolver)); } if (log == null) { throw new ArgumentNullException(nameof(log)); } _fileSystem = fileSystem; _environment = environment; _processRunner = processRunner; _toolResolver = toolResolver; _contentResolver = contentResolver; _log = log; _config = config; }
public NuGetInstaller(IFileSystem fileSystem, IGlobber globber) { _fileSystem = fileSystem; _globber = globber; }