5 instantiations of FileClassifier
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
74private static readonly Lazy<FileClassifier> s_sharedInstance = new(() => new FileClassifier());
Microsoft.Build.Framework.UnitTests (4)
FileClassifier_Tests.cs (4)
24FileClassifier classifier = new(); 38FileClassifier classifier = new(); 56FileClassifier classifier = new(); 76FileClassifier classifier = new();
18 references to FileClassifier
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1429FileClassifier.Shared.RegisterKnownImmutableLocations(project.GetPropertyValue);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
408FileClassifier.Shared.RegisterFrameworkLocations(getPropertyValue); 409FileClassifier.Shared.RegisterKnownImmutableLocations(getPropertyValue);
BuildCheck\Infrastructure\CheckScopeClassifier.cs (4)
13static CheckScopeClassifier() => FileClassifier.Shared.OnImmutablePathsInitialized += SubscribeImmutablePathsInitialized; 17internal static bool IsScopingInitialized => FileClassifier.Shared.IsImmutablePathsInitialized; 53&& !FileClassifier.Shared.IsNonModifiable(filePathOfEvent) 67FileClassifier.Shared.OnImmutablePathsInitialized -= () => NotifyOnScopingReadiness?.Invoke();
Definition\ToolsetReader.cs (1)
422FileClassifier.Shared.RegisterFrameworkLocations(p =>
Evaluation\ProjectRootElementCache.cs (1)
179if (!Traits.Instance.EscapeHatches.AlwaysDoImmutableFilesUpToDateCheck && FileClassifier.Shared.IsNonModifiable(projectFile))
Microsoft.Build.Framework (4)
FileClassifier.cs (2)
74private static readonly Lazy<FileClassifier> s_sharedInstance = new(() => new FileClassifier()); 197public static FileClassifier Shared => s_sharedInstance.Value;
ImmutableFilesTimestampCache.cs (1)
10/// Caching 'Last Write File Utc' times for Immutable files <see cref="FileClassifier" />.
NativeMethods.cs (1)
1162bool isNonModifiable = FileClassifier.Shared.IsNonModifiable(fullPath);
Microsoft.Build.Framework.UnitTests (5)
FileClassifier_Tests.cs (5)
18FileClassifier.Shared.ShouldNotBeNull(); 24FileClassifier classifier = new(); 38FileClassifier classifier = new(); 56FileClassifier classifier = new(); 76FileClassifier classifier = new();