public void AddPackageDetails(PackageDetails package) { lock (pathToPackageDetailsLock) { string key = $"{package.Id}_{package.Version}"; if (!this.pathToPackageDetails.ContainsKey(key)) { this.pathToPackageDetails.Add(key, package); } } }
public NuGetPackageDetails(PackageDetails details) { this.details = details; }
public bool TryGetDetails(IPackage package, out PackageDetails details) { return(this.pathToPackageDetails.TryGetValue($"{package.Id}_{package.Version}", out details)); }