예제 #1
0
 private bool ShouldPrimeNugetCache()
 {
     return(ShouldRunFirstRunExperience() &&
            !_nugetCacheSentinel.Exists() &&
            !_nugetCacheSentinel.InProgressSentinelAlreadyExists() &&
            !_nugetCachePrimer.SkipPrimingTheCache());
 }
예제 #2
0
        private bool PermissionExists(INuGetCacheSentinel sentinel)
        {
            if (sentinel == null)
            {
                return(false);
            }

            return(sentinel.Exists());
        }
        private bool ShouldPrimeNugetCache()
        {
            var skipFirstTimeExperience =
                _environmentProvider.GetEnvironmentVariableAsBool("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", false);

            return(!skipFirstTimeExperience &&
                   !_nugetCacheSentinel.Exists() &&
                   !_nugetCacheSentinel.InProgressSentinelAlreadyExists());
        }
예제 #4
0
        private bool PermissionExists(INuGetCacheSentinel sentinel)
        {
            if (sentinel == null)
            {
                return false;
            }

            return sentinel.Exists();
        }