3 instantiations of ProjectCacheDescriptor
Microsoft.Build (3)
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (3)
31=> new ProjectCacheDescriptor(pluginAssemblyPath, pluginSettings, pluginInstance: null); 34=> new ProjectCacheDescriptor(pluginAssemblyPath: null, pluginSettings, pluginInstance); 43return new ProjectCacheDescriptor(
26 references to ProjectCacheDescriptor
Microsoft.Build (26)
BackEnd\BuildManager\BuildManager.cs (2)
57internal static ConcurrentDictionary<ProjectCacheDescriptor, ProjectCacheDescriptor> ProjectCacheDescriptors { get; } = new(ProjectCacheDescriptorEqualityComparer.Instance);
BackEnd\BuildManager\BuildParameters.cs (1)
930public ProjectCacheDescriptor ProjectCacheDescriptor { get; set; }
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (3)
30public static ProjectCacheDescriptor FromAssemblyPath(string pluginAssemblyPath, IReadOnlyDictionary<string, string>? pluginSettings = null) 33public static ProjectCacheDescriptor FromInstance(ProjectCachePluginBase pluginInstance, IReadOnlyDictionary<string, string>? pluginSettings = null) 37public static ProjectCacheDescriptor FromInstance(
BackEnd\Components\ProjectCache\ProjectCacheDescriptorEqualityComparer.cs (4)
10internal sealed class ProjectCacheDescriptorEqualityComparer : IEqualityComparer<ProjectCacheDescriptor> 18public bool Equals(ProjectCacheDescriptor? x, ProjectCacheDescriptor? y) 35public int GetHashCode(ProjectCacheDescriptor obj)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (14)
49private readonly ProjectCacheDescriptor? _globalProjectCacheDescriptor; 51private readonly ConcurrentDictionary<ProjectCacheDescriptor, Lazy<Task<ProjectCachePlugin>>> _projectCachePlugins = new(ProjectCacheDescriptorEqualityComparer.Instance); 88ProjectCacheDescriptor? globalProjectCacheDescriptor) 120foreach (ProjectCacheDescriptor projectCacheDescriptor in GetProjectCacheDescriptors(node.ProjectInstance)) 132IEnumerable<ProjectCacheDescriptor> projectCacheDescriptors, 165ProjectCacheDescriptor projectCacheDescriptor, 177private IEnumerable<ProjectCacheDescriptor> GetProjectCacheDescriptors(ProjectInstance projectInstance) 195yield return ProjectCacheDescriptor.FromAssemblyPath(pluginPath, pluginSettings); 201ProjectCacheDescriptor projectCacheDescriptor, 607HashSet<ProjectCacheDescriptor> queriedCaches = new(ProjectCacheDescriptorEqualityComparer.Instance); 609foreach (ProjectCacheDescriptor projectCacheDescriptor in GetProjectCacheDescriptors(buildRequest.ProjectInstance!)) 850List<ProjectCacheDescriptor> projectCacheDescriptors = GetProjectCacheDescriptors(requestConfiguration.Project).ToList(); 886foreach (ProjectCacheDescriptor projectCacheDescriptor in projectCacheDescriptors) 969foreach (KeyValuePair<ProjectCacheDescriptor, Lazy<Task<ProjectCachePlugin>>> kvp in _projectCachePlugins)
Evaluation\Evaluator.cs (2)
909var projectCacheItem = ProjectCacheDescriptor.FromAssemblyPath(pluginPath, pluginSettings);