Пример #1
0
 private bool ShouldPrimeNugetCache()
 {
     return(ShouldRunFirstRunExperience() &&
            !_nugetCacheSentinel.Exists() &&
            !_nugetCacheSentinel.InProgressSentinelAlreadyExists() &&
            !_nugetCachePrimer.SkipPrimingTheCache());
 }
        private bool ShouldPrimeNugetCache()
        {
            var skipFirstTimeExperience =
                _environmentProvider.GetEnvironmentVariableAsBool("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", false);

            return(!skipFirstTimeExperience &&
                   !_nugetCacheSentinel.Exists() &&
                   !_nugetCacheSentinel.InProgressSentinelAlreadyExists());
        }