public bool DownloadPackage(PublicObjectView packageView, string destination, RequestWrapper request)
 {
     try
     {
         request.Debug(Messages.DebugInfoCallMethod3, "NuGetLocalPackageFeed", "DownloadPackage", destination);
         PackageItem package = packageView.GetValue <PackageItem>();
         // TODO: For now this has to require NuGetRequest, due to its usage of stuff like request.GetOptionValue and request.YieldPackage
         return(NuGetClient.InstallOrDownloadPackageHelper(package, request.Request, Constants.Install,
                                                           (packageItem, progressTracker) => NuGetClient.DownloadSinglePackage(packageItem, request.Request, destination, progressTracker)));
     }
     finally
     {
         request.Debug(Messages.DebugInfoReturnCall, "NuGetLocalPackageFeed", "DownloadPackage");
     }
 }
Exemple #2
0
 public bool InstallPackage(PublicObjectView packageView, RequestWrapper request)
 {
     try
     {
         request.Debug(Messages.DebugInfoCallMethod, "NuGetFilesFeed3", "InstallPackage");
         PackageItem package = packageView.GetValue <PackageItem>();
         request.Debug(Messages.DebugInfoCallMethod3, "NuGetFilesFeed3", "InstallPackage", package.FastPath);
         return(NuGetClient.InstallOrDownloadPackageHelper(package, request.Request, Constants.Install,
                                                           (packageItem, progressTracker) => this.InstallSinglePackage(packageItem, request.Request, progressTracker)));
     }
     finally
     {
         request.Debug(Messages.DebugInfoReturnCall, "NuGetFilesFeed3", "InstallPackage");
     }
 }
Exemple #3
0
 public bool InstallPackage(PublicObjectView packageView, NuGetRequest request)
 {
     request.Debug(Messages.DebugInfoCallMethod, "NuGetPackageRepository", "InstallPackage");
     return(this.ResourceProvider.FilesFeed.InstallPackage(packageView, request));
 }
Exemple #4
0
 public bool DownloadPackage(PublicObjectView packageView, string destination, NuGetRequest request)
 {
     request.Debug(Messages.DebugInfoCallMethod, "NuGetPackageRepository", "DownloadPackage");
     return(this.ResourceProvider.FilesFeed.DownloadPackage(packageView, destination, request));
 }
 public bool InstallPackage(PublicObjectView packageView, NuGetRequest request) => this.ResourceProvider.FilesFeed.InstallPackage(packageView, request);
 public bool DownloadPackage(PublicObjectView packageView, string destination, NuGetRequest request) => this.ResourceProvider.FilesFeed.DownloadPackage(packageView, destination, request);
 public bool InstallPackage(PublicObjectView packageView, NuGetRequest request)
 {
     return(InstallPackage(packageView, new RequestWrapper(request)));
 }
 public bool DownloadPackage(PublicObjectView packageView, string destination, NuGetRequest request)
 {
     return(DownloadPackage(packageView, destination, new RequestWrapper(request)));
 }