16 instantiations of FileState
Microsoft.Build.Tasks.Core (2)
SystemState.cs (2)
271(ITranslator t) => new FileState(t)); 433var fileState = new FileState(lastModified);
Microsoft.Build.Tasks.UnitTests (14)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (7)
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")) { 146{ "path1", new SystemState.FileState(GetLastWriteTime("path1")) }, 147{ "path2", new SystemState.FileState(GetLastWriteTime("path2")) } }; 175{ "path1", new SystemState.FileState(GetLastWriteTime("path1")) }, 176{ "path2", new SystemState.FileState(GetLastWriteTime("path2")) } };
RARPrecomputedCache_Tests.cs (7)
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) 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) {
33 references to FileState
Microsoft.Build.Tasks.Core (23)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2325return SystemState.FileState.ImmutableFileLastModifiedMarker;
SystemState.cs (22)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 38/// <see cref="FileState"/> objects that get actually used are inserted into <see cref="instanceLocalOutgoingFileStateCache"/>. 42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 73private static ConcurrentDictionary<string, FileState> s_processWideFileStateCache = new ConcurrentDictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 359internal FileState GetFileState(string path) 370upToDateLocalFileStateCache.TryGetValue(path, out FileState state); 380private FileState ComputeFileStateFromCachesAndDisk(string path) 383bool isCachedInInstance = instanceLocalFileStateCache.TryGetValue(path, out FileState cachedInstanceFileState); 384bool isCachedInProcess = s_processWideFileStateCache.TryGetValue(path, out FileState cachedProcessFileState); 431private FileState InitializeFileState(string path, DateTime lastModified) 433var fileState = new FileState(lastModified); 480FileState fileState = GetFileState(path); 512FileState fileState = GetFileState(path); 541FileState fileState = GetFileState(path); 583foreach (KeyValuePair<string, FileState> kvp in sysState.instanceLocalFileStateCache) 588FileState fileState = kvp.Value; 612Dictionary<string, FileState> oldFileStateCache = instanceLocalOutgoingFileStateCache;
Microsoft.Build.Tasks.UnitTests (10)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (7)
102Dictionary<string, SystemState.FileState> cache = new() { 129Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 132SystemState.FileState dll = cache["dllName"]; 133SystemState.FileState dll2 = cache2["dllName"]; 145Dictionary<string, SystemState.FileState> cache = new() { 166Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 174Dictionary<string, SystemState.FileState> cache = new() {
RARPrecomputedCache_Tests.cs (3)
30t._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 117rarWriterTask._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 145SystemState.FileState assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];