16 instantiations of FileState
Microsoft.Build.Tasks.Core (2)
SystemState.cs (2)
271
(ITranslator t) => new
FileState
(t));
433
var 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) },
77
new 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)
2325
return SystemState.
FileState
.ImmutableFileLastModifiedMarker;
SystemState.cs (22)
31
private 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"/>.
42
internal Dictionary<string,
FileState
> instanceLocalFileStateCache = new Dictionary<string,
FileState
>(StringComparer.OrdinalIgnoreCase);
47
internal Dictionary<string,
FileState
> instanceLocalOutgoingFileStateCache = new Dictionary<string,
FileState
>(StringComparer.OrdinalIgnoreCase);
73
private static ConcurrentDictionary<string,
FileState
> s_processWideFileStateCache = new ConcurrentDictionary<string,
FileState
>(StringComparer.OrdinalIgnoreCase);
359
internal
FileState
GetFileState(string path)
370
upToDateLocalFileStateCache.TryGetValue(path, out
FileState
state);
380
private
FileState
ComputeFileStateFromCachesAndDisk(string path)
383
bool isCachedInInstance = instanceLocalFileStateCache.TryGetValue(path, out
FileState
cachedInstanceFileState);
384
bool isCachedInProcess = s_processWideFileStateCache.TryGetValue(path, out
FileState
cachedProcessFileState);
431
private
FileState
InitializeFileState(string path, DateTime lastModified)
433
var
fileState = new FileState(lastModified);
480
FileState
fileState = GetFileState(path);
512
FileState
fileState = GetFileState(path);
541
FileState
fileState = GetFileState(path);
583
foreach (KeyValuePair<string,
FileState
> kvp in sysState.instanceLocalFileStateCache)
588
FileState
fileState = kvp.Value;
612
Dictionary<string,
FileState
> oldFileStateCache = instanceLocalOutgoingFileStateCache;
Microsoft.Build.Tasks.UnitTests (10)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (7)
102
Dictionary<string, SystemState.
FileState
> cache = new() {
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() {
166
Dictionary<string, SystemState.
FileState
> cache2 = sysState2.instanceLocalFileStateCache;
174
Dictionary<string, SystemState.
FileState
> cache = new() {
RARPrecomputedCache_Tests.cs (3)
30
t._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.
FileState
>() {
117
rarWriterTask._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.
FileState
>() {
145
SystemState.
FileState
assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];