7 writes to instanceLocalFileStateCache
Microsoft.Build.Tasks.Core (1)
SystemState.cs (1)
269
ref (translator.Mode == TranslationDirection.WriteToStream) ? ref instanceLocalOutgoingFileStateCache : ref
instanceLocalFileStateCache
,
Microsoft.Build.Tasks.UnitTests (6)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (3)
112
sysState.
instanceLocalFileStateCache
= cache;
150
sysState.
instanceLocalFileStateCache
= cache;
179
sysState.
instanceLocalFileStateCache
= cache;
RARPrecomputedCache_Tests.cs (3)
30
t._cache.
instanceLocalFileStateCache
= new Dictionary<string, SystemState.FileState>() {
65
rarWriterTask._cache.
instanceLocalFileStateCache
= new() {
117
rarWriterTask._cache.
instanceLocalFileStateCache
= new Dictionary<string, SystemState.FileState>() {
18 references to instanceLocalFileStateCache
Microsoft.Build.Tasks.Core (12)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2075
else if (!string.IsNullOrEmpty(_stateFile) && (_cache.IsDirty || _cache.instanceLocalOutgoingFileStateCache.Count < _cache.
instanceLocalFileStateCache
.Count))
SystemState.cs (11)
28
/// Cache at the SystemState instance level. Has the same contents as <see cref="
instanceLocalFileStateCache
"/>.
45
/// Cache at the SystemState instance level. It is serialized to disk and reused between instances via <see cref="
instanceLocalFileStateCache
"/>.
263
if (
instanceLocalFileStateCache
is null)
265
throw new NullReferenceException(nameof(
instanceLocalFileStateCache
));
282
/// Flag that indicates that <see cref="
instanceLocalFileStateCache
"/> has been modified.
383
bool isCachedInInstance =
instanceLocalFileStateCache
.TryGetValue(path, out FileState cachedInstanceFileState);
397
instanceLocalFileStateCache
[path] = cachedProcessFileState;
438
instanceLocalFileStateCache
[path] = fileState;
583
foreach (KeyValuePair<string, FileState> kvp in sysState.
instanceLocalFileStateCache
)
593
retVal.
instanceLocalFileStateCache
[fullPath] = fileState;
613
instanceLocalOutgoingFileStateCache =
instanceLocalFileStateCache
.ToDictionary(kvp => FileUtilities.MakeRelative(Path.GetDirectoryName(stateFile), kvp.Key), kvp => kvp.Value);
Microsoft.Build.Tasks.UnitTests (6)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (2)
129
Dictionary<string, SystemState.FileState> cache2 = sysState2.
instanceLocalFileStateCache
;
166
Dictionary<string, SystemState.FileState> cache2 = sysState2.
instanceLocalFileStateCache
;
RARPrecomputedCache_Tests.cs (4)
76
rarWriterTask._cache.
instanceLocalFileStateCache
.Add(dllName,
102
rarReaderTask._cache.
instanceLocalFileStateCache
.ShouldNotContainKey(dllName);
144
rarReaderTask._cache.
instanceLocalFileStateCache
.ShouldContainKey(dllName);
145
SystemState.FileState assembly3 = rarReaderTask._cache.
instanceLocalFileStateCache
[dllName];