예제 #1
0
 public ProgressService()
 {
     this._isLoading = false;
     this._loadingItems = 0;
     this._output = new ObservableRingBufferCollection<PowerShellOutputLine>(100);
     this._lock = new AsyncLock();
 }
예제 #2
0
        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");
        }
예제 #3
0
 public Releaser(AsyncLock @lock)
 {
     this._lock = @lock;
 }