示例#1
0
 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;
 }
示例#3
0
 /// <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;
 }
示例#4
0
 public ProcessProvider(IPowershellService powerShellService)
 {
     this.powerShellService = powerShellService ?? throw new ArgumentNullException(nameof(powerShellService));
 }