11 instantiations of SystemState
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2062_cache = new SystemState();
SystemState.cs (1)
571SystemState retVal = new SystemState();
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
54SystemState systemState = new(); 66SystemState systemState = new(); 84SystemState systemState = new(); 110SystemState sysState = new(); 148SystemState sysState = new(); 177SystemState sysState = new();
RARPrecomputedCache_Tests.cs (3)
28_cache = new SystemState() 63_cache = new SystemState() 114_cache = new SystemState()
51 references to SystemState
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\ResolveAssemblyReference.cs (5)
60internal SystemState _cache = null; 2052_cache = SystemState.DeserializeCache<SystemState>(_stateFile, Log); 2057_cache = SystemState.DeserializePrecomputedCaches(AssemblyInformationCachePaths, Log, fileExists); 2325return SystemState.FileState.ImmutableFileLastModifiedMarker;
SystemState.cs (4)
569internal static SystemState DeserializePrecomputedCaches(ITaskItem[] stateFiles, TaskLoggingHelper log, FileExists fileExists) 571SystemState retVal = new SystemState(); 578SystemState sysState = DeserializeCache<SystemState>(stateFile.ToString(), log);
Microsoft.Build.Tasks.UnitTests (42)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (32)
54SystemState systemState = new(); 58var deserialized = StateFileBase.DeserializeCache<SystemState>(_rarCacheFile, _taskLoggingHelper); 66SystemState systemState = new(); 76var deserialized = StateFileBase.DeserializeCache<SystemState>(_rarCacheFile, _taskLoggingHelper); 84SystemState systemState = new(); 94var deserialized = StateFileBase.DeserializeCache<SystemState>(_rarCacheFile, _taskLoggingHelper); 102Dictionary<string, SystemState.FileState> cache = new() { 103{ "path1", new SystemState.FileState(GetLastWriteTime("path1")) }, 104{ "path2", new SystemState.FileState(GetLastWriteTime("path2")) { Assembly = new AssemblyNameExtension("hi") } }, 105{ "dllName", new SystemState.FileState(GetLastWriteTime("dllName")) { 110SystemState sysState = new(); 121SystemState sysState2 = null; 126sysState2 = StateFileBase.DeserializeCache<SystemState>(file.Path, null); 129Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 132SystemState.FileState dll = cache["dllName"]; 133SystemState.FileState dll2 = cache2["dllName"]; 145Dictionary<string, SystemState.FileState> cache = new() { 146{ "path1", new SystemState.FileState(GetLastWriteTime("path1")) }, 147{ "path2", new SystemState.FileState(GetLastWriteTime("path2")) } }; 148SystemState sysState = new(); 157SystemState sysState2 = null; 162sysState2 = StateFileBase.DeserializeCache<SystemState>(file.Path, null); 166Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 174Dictionary<string, SystemState.FileState> cache = new() { 175{ "path1", new SystemState.FileState(GetLastWriteTime("path1")) }, 176{ "path2", new SystemState.FileState(GetLastWriteTime("path2")) } }; 177SystemState sysState = new(); 183SystemState sysState2 = null; 188sysState2 = StateFileBase.DeserializeCache<SystemState>(file.Path, null);
RARPrecomputedCache_Tests.cs (10)
30t._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 31{ Path.Combine(standardCache.Path, "assembly1"), new SystemState.FileState(now) }, 32{ Path.Combine(standardCache.Path, "assembly2"), new SystemState.FileState(now) { Assembly = new Shared.AssemblyNameExtension("hi") } } }; 66{ "path1", new SystemState.FileState(now) }, 77new SystemState.FileState(DateTime.Now) 117rarWriterTask._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 118{ Path.Combine(precomputedCache.Path, "..", "assembly1", "assembly1"), new SystemState.FileState(DateTime.Now) }, 119{ Path.Combine(precomputedCache.Path, "assembly2"), new SystemState.FileState(DateTime.Now) { Assembly = new Shared.AssemblyNameExtension("hi") } }, 120{ dllName, new SystemState.FileState(DateTime.Now) { 145SystemState.FileState assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];