コード例 #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());
        }
コード例 #3
0
        private bool ShouldPrimeNugetCache()
        {
            var skipFirstTimeExperience =
                _environmentProvider.GetEnvironmentVariableAsBool("DOTNET_SKIP_FIRST_TIME_EXPERIENCE", false);

            return(!skipFirstTimeExperience &&
                   !_nugetCacheSentinel.Exists() &&
                   !_nugetCacheSentinel.InProgressSentinelAlreadyExists());
        }
コード例 #4
0
ファイル: Telemetry.cs プロジェクト: akrisiun/dotnet-cli
        private bool PermissionExists(INuGetCacheSentinel sentinel)
        {
            if (sentinel == null)
            {
                return false;
            }

            return sentinel.Exists();
        }