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