3 writes to _cache
Microsoft.Build.Tasks.Core (3)
AssemblyDependency\ResolveAssemblyReference.cs (3)
2568
_cache
= SystemState.DeserializeCache<SystemState>(_stateFile, Log);
2573
_cache
= SystemState.DeserializePrecomputedCaches(AssemblyInformationCachePaths, Log, fileExists, TaskEnvironment);
2578
_cache
= new SystemState();
17 references to _cache
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\ResolveAssemblyReference.cs (17)
2571
if (
_cache
== null && AssemblyInformationCachePaths != null && AssemblyInformationCachePaths.Length > 0)
2576
if (
_cache
== null)
2589
_cache
.SerializePrecomputedCache(_assemblyInformationCacheOutputPath, Log);
2591
else if (_stateFile.Value is not null && (
_cache
.IsDirty ||
_cache
.instanceLocalOutgoingFileStateCache.Count <
_cache
.instanceLocalFileStateCache.Count))
2595
_cache
.SerializeCache(_stateFile, Log);
2834
_cache
.SetInstalledAssemblyInformation(installedAssemblyTableInfo);
2837
getAssemblyMetadata =
_cache
.CacheDelegate(getAssemblyMetadata);
2838
FileExists cachedFileExists =
_cache
.CacheDelegate();
2844
directoryExists =
_cache
.CacheDelegate(directoryExists);
2845
getDirectories =
_cache
.CacheDelegate(getDirectories);
2861
_cache
.SetGetLastWriteTime(getLastWriteTimeForCache);
2865
getAssemblyName =
_cache
.CacheDelegate(path =>
2873
getRuntimeVersion =
_cache
.CacheDelegate(path =>
3140
_cache
.SetGetLastWriteTime(getLastWriteTime);
3153
_cache
.SetGetLastWriteTime(getLastWriteTimeForCache);