public ChocolateyPackageService(INugetService nugetService, IPowershellService powershellService, IShimGenerationService shimgenService, IFileSystem fileSystem, IRegistryService registryService, IChocolateyPackageInformationService packageInfoService, IAutomaticUninstallerService autoUninstallerService) { _nugetService = nugetService; _powershellService = powershellService; _shimgenService = shimgenService; _fileSystem = fileSystem; _registryService = registryService; _packageInfoService = packageInfoService; _autoUninstallerService = autoUninstallerService; }
public ChocolateyPackageService(INugetService nugetService, IPowershellService powershellService, IEnumerable <ISourceRunner> sourceRunners, IShimGenerationService shimgenService, IFileSystem fileSystem, IRegistryService registryService, IChocolateyPackageInformationService packageInfoService, IFilesService filesService, IAutomaticUninstallerService autoUninstallerService, IXmlService xmlService, IConfigTransformService configTransformService) { _nugetService = nugetService; _powershellService = powershellService; _sourceRunners = sourceRunners; _shimgenService = shimgenService; _fileSystem = fileSystem; _registryService = registryService; _packageInfoService = packageInfoService; _filesService = filesService; _autoUninstallerService = autoUninstallerService; _xmlService = xmlService; _configTransformService = configTransformService; }
/// <summary> /// Initializes a new instance of the <see cref="PackageRepository"/> class. /// </summary> /// <param name="powerShellService">The powerShellService <see cref="IPowershellService"/>.</param> public PackageRepository(IPowershellService powerShellService) { this.powerShellService = powerShellService; }
public ProcessProvider(IPowershellService powerShellService) { this.powerShellService = powerShellService ?? throw new ArgumentNullException(nameof(powerShellService)); }