Beispiel #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)));
 }
Beispiel #2
0
        private static async Task <INuGetExe> GetNuGetExeAsync()
        {
            await Task.Yield();

            var nuGetExe = NuGetExe.GetBuiltNuGetExe();

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