22 references to CacheResultType
Microsoft.Build (22)
BackEnd\BuildManager\BuildManager.cs (3)
2546
if (cacheResult.ResultType !=
CacheResultType
.CacheHit)
2552
else if (cacheResult.ResultType ==
CacheResultType
.CacheHit && cacheResult.ProxyTargets != null)
2559
else if (cacheResult.ResultType ==
CacheResultType
.CacheHit && cacheResult.BuildResult != null)
BackEnd\Components\ProjectCache\CacheResult.cs (11)
42
/// Results representing cache hits (with <see cref="ResultType"/> == <see cref="
CacheResultType
.CacheHit"/>)
48
public
CacheResultType
ResultType { get; }
57
CacheResultType
resultType,
61
if (resultType ==
CacheResultType
.CacheHit)
73
ResultType =
CacheResultType
.None;
79
return new CacheResult(
CacheResultType
.CacheHit, buildResult);
84
return new CacheResult(
CacheResultType
.CacheHit, proxyTargets: proxyTargets);
91
return new CacheResult(
CacheResultType
.CacheHit, ConstructBuildResult(targetResults));
94
public static CacheResult IndicateNonCacheHit(
CacheResultType
resultType)
96
Assumed.NotEqual(resultType,
CacheResultType
.CacheHit, "CantBeCacheHit");
144
(
CacheResultType
)(int)experimentalResult.ResultType,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (8)
641
if (pluginLogger.HasLoggedErrors || experimentalPluginLogger.HasLoggedErrors || cacheResult.ResultType ==
CacheResultType
.None)
646
if (cacheResult.ResultType ==
CacheResultType
.CacheHit)
660
string cacheResultType = cacheResult?.ResultType.ToString() ?? nameof(
CacheResultType
.None);
667
cacheResult ??= CacheResult.IndicateNonCacheHit(
CacheResultType
.CacheNotApplicable);
671
case
CacheResultType
.CacheHit:
689
case
CacheResultType
.CacheMiss:
700
case
CacheResultType
.CacheNotApplicable:
711
case
CacheResultType
.None: // Should not get here based on the throw above