11 instantiations of SystemState
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2062
_cache = new
SystemState
();
SystemState.cs (1)
571
SystemState retVal = new
SystemState
();
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (6)
54
SystemState systemState =
new
();
66
SystemState systemState =
new
();
84
SystemState systemState =
new
();
110
SystemState sysState =
new
();
148
SystemState sysState =
new
();
177
SystemState 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)
60
internal
SystemState
_cache = null;
2052
_cache =
SystemState
.DeserializeCache<
SystemState
>(_stateFile, Log);
2057
_cache =
SystemState
.DeserializePrecomputedCaches(AssemblyInformationCachePaths, Log, fileExists);
2325
return
SystemState
.FileState.ImmutableFileLastModifiedMarker;
SystemState.cs (4)
569
internal static
SystemState
DeserializePrecomputedCaches(ITaskItem[] stateFiles, TaskLoggingHelper log, FileExists fileExists)
571
SystemState
retVal = new SystemState();
578
SystemState
sysState = DeserializeCache<
SystemState
>(stateFile.ToString(), log);
Microsoft.Build.Tasks.UnitTests (42)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (32)
54
SystemState
systemState = new();
58
var
deserialized = StateFileBase.DeserializeCache<
SystemState
>(_rarCacheFile, _taskLoggingHelper);
66
SystemState
systemState = new();
76
var
deserialized = StateFileBase.DeserializeCache<
SystemState
>(_rarCacheFile, _taskLoggingHelper);
84
SystemState
systemState = new();
94
var
deserialized = StateFileBase.DeserializeCache<
SystemState
>(_rarCacheFile, _taskLoggingHelper);
102
Dictionary<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")) {
110
SystemState
sysState = new();
121
SystemState
sysState2 = null;
126
sysState2 = StateFileBase.DeserializeCache<
SystemState
>(file.Path, null);
129
Dictionary<string,
SystemState
.FileState> cache2 = sysState2.instanceLocalFileStateCache;
132
SystemState
.FileState dll = cache["dllName"];
133
SystemState
.FileState dll2 = cache2["dllName"];
145
Dictionary<string,
SystemState
.FileState> cache = new() {
146
{ "path1", new
SystemState
.FileState(GetLastWriteTime("path1")) },
147
{ "path2", new
SystemState
.FileState(GetLastWriteTime("path2")) } };
148
SystemState
sysState = new();
157
SystemState
sysState2 = null;
162
sysState2 = StateFileBase.DeserializeCache<
SystemState
>(file.Path, null);
166
Dictionary<string,
SystemState
.FileState> cache2 = sysState2.instanceLocalFileStateCache;
174
Dictionary<string,
SystemState
.FileState> cache = new() {
175
{ "path1", new
SystemState
.FileState(GetLastWriteTime("path1")) },
176
{ "path2", new
SystemState
.FileState(GetLastWriteTime("path2")) } };
177
SystemState
sysState = new();
183
SystemState
sysState2 = null;
188
sysState2 = StateFileBase.DeserializeCache<
SystemState
>(file.Path, null);
RARPrecomputedCache_Tests.cs (10)
30
t._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) },
77
new
SystemState
.FileState(DateTime.Now)
117
rarWriterTask._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) {
145
SystemState
.FileState assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];