Beispiel #1
0
#pragma warning disable SA1401 // Fields must be private
#pragma warning restore SA1401 // Fields must be private

        public ChocolateyService(IMapper mapper, IProgressService progressService, IChocolateyConfigSettingsService configSettingsService, IXmlService xmlService, IFileSystem fileSystem, IConfigService configService)
        {
            _mapper                = mapper;
            _progressService       = progressService;
            _configSettingsService = configSettingsService;
            _xmlService            = xmlService;
            _fileSystem            = fileSystem;
            _configService         = configService;
            _choco = Lets.GetChocolatey().SetCustomLogging(new SerilogLogger(Logger, _progressService));

            _localAppDataPath = _fileSystem.combine_paths(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData, Environment.SpecialFolderOption.DoNotVerify), "Chocolatey GUI");
        }
 public ChocolateyPushCommand(IChocolateyPackageService packageService, IChocolateyConfigSettingsService configSettingsService)
 {
     _packageService        = packageService;
     _configSettingsService = configSettingsService;
 }
 public ChocolateyConfigCommand(IChocolateyConfigSettingsService configSettingsService)
 {
     _configSettingsService = configSettingsService;
 }
 public ChocolateyConfigCommand(IChocolateyConfigSettingsService configSettingsService)
 {
     _configSettingsService = configSettingsService;
 }
 public ChocolateyPushCommand(IChocolateyPackageService packageService, IChocolateyConfigSettingsService configSettingsService)
 {
     _packageService = packageService;
     _configSettingsService = configSettingsService;
 }