void AddCurrentShaToCache(IActivityMonitor m, ZeroBuildProjectInfo p) { if (!_sha1Cache.TryGetValue(p.Project.FullFolderPath, out var shaList)) { _sha1Cache.Add(p.Project.FullFolderPath, shaList = new HashSet <string>()); } if (shaList.Add(_currentShas[p.Index]) && shaList.Count > 1) { m.Trace($"Added new Shalias for {p.Project.FullFolderPath}."); } }
/// <summary> /// Initializes a new event instance. /// </summary> /// <param name="m">The monitor.</param> /// <param name="starting">Whether the build is strating or has been executed.</param> /// <param name="info">The build info.</param> public ZeroBuildEventArgs(IActivityMonitor m, bool starting, ZeroBuildProjectInfo info) : base(m) { IsStarting = starting; Info = info; }