public ProgressService() { this._isLoading = false; this._loadingItems = 0; this._output = new ObservableRingBufferCollection<PowerShellOutputLine>(100); this._lock = new AsyncLock(); }
protected BasePackageService(IProgressService progressService, Func<Type, ILogService> logServiceFunc, IChocolateyConfigurationProvider chocolateyConfigurationProvider) { if (logServiceFunc == null) { throw new ArgumentNullException("logServiceFunc"); } this.GetInstalledLock = new AsyncLock(); this.progressService = progressService; this.logService = logServiceFunc(typeof(IChocolateyPackageService)); this.chocolateyConfigurationProvider = chocolateyConfigurationProvider; this.PackagesJsonPath = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "ChocolateyGUI", "packages.json"); }
public Releaser(AsyncLock @lock) { this._lock = @lock; }