Exemple #1
0
 private HttpCacheResult InitializeHttpCacheResult(PackageIdentity identity, SourceCacheContext sourceCacheContext)
 {
     return(HttpCacheUtility.InitializeHttpCacheResult(
                NuGetExe.GetHttpCachePath(this),
                new Uri(CurrentSource),
                $"nupkg_{identity.Id}.{identity.Version}",
                HttpSourceCacheContext.Create(sourceCacheContext, retryCount: 0)));
 }
Exemple #2
0
        private static async Task <INuGetExe> GetNuGetExeAsync()
        {
            await Task.Yield();

            var nuGetExe = NuGetExe.GetBuiltNuGetExe();

            return(nuGetExe);
        }
Exemple #3
0
 public CommandRunnerResult Execute(string args)
 {
     return(NuGetExe.Execute(this, args));
 }
Exemple #4
0
 public void ClearHttpCache()
 {
     NuGetExe.ClearHttpCache(this);
 }