2 instantiations of ProjectCacheDescriptor
Microsoft.Build (2)
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (2)
30=> new ProjectCacheDescriptor(pluginAssemblyPath, pluginSettings, pluginInstance: null); 33=> new ProjectCacheDescriptor(pluginAssemblyPath: null, pluginSettings, pluginInstance);
37 references to ProjectCacheDescriptor
Microsoft.Build (25)
BackEnd\BuildManager\BuildManager.cs (2)
54internal static ConcurrentDictionary<ProjectCacheDescriptor, ProjectCacheDescriptor> ProjectCacheDescriptors { get; } = new(ProjectCacheDescriptorEqualityComparer.Instance);
BackEnd\BuildManager\BuildParameters.cs (1)
855public ProjectCacheDescriptor ProjectCacheDescriptor { get; set; }
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (2)
29public static ProjectCacheDescriptor FromAssemblyPath(string pluginAssemblyPath, IReadOnlyDictionary<string, string>? pluginSettings = null) 32public static ProjectCacheDescriptor FromInstance(ProjectCachePluginBase pluginInstance, IReadOnlyDictionary<string, string>? pluginSettings = null)
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)
44private readonly ProjectCacheDescriptor? _globalProjectCacheDescriptor; 46private readonly ConcurrentDictionary<ProjectCacheDescriptor, Lazy<Task<ProjectCachePlugin>>> _projectCachePlugins = new(ProjectCacheDescriptorEqualityComparer.Instance); 83ProjectCacheDescriptor? globalProjectCacheDescriptor) 114foreach (ProjectCacheDescriptor projectCacheDescriptor in GetProjectCacheDescriptors(node.ProjectInstance)) 126IEnumerable<ProjectCacheDescriptor> projectCacheDescriptors, 159ProjectCacheDescriptor projectCacheDescriptor, 171private IEnumerable<ProjectCacheDescriptor> GetProjectCacheDescriptors(ProjectInstance projectInstance) 189yield return ProjectCacheDescriptor.FromAssemblyPath(pluginPath, pluginSettings); 194ProjectCacheDescriptor projectCacheDescriptor, 523HashSet<ProjectCacheDescriptor> queriedCaches = new(ProjectCacheDescriptorEqualityComparer.Instance); 525foreach (ProjectCacheDescriptor projectCacheDescriptor in GetProjectCacheDescriptors(buildRequest.ProjectInstance!)) 725List<ProjectCacheDescriptor> projectCacheDescriptors = GetProjectCacheDescriptors(requestConfiguration.Project).ToList(); 753foreach (ProjectCacheDescriptor projectCacheDescriptor in projectCacheDescriptors) 822foreach (KeyValuePair<ProjectCacheDescriptor, Lazy<Task<ProjectCachePlugin>>> kvp in _projectCachePlugins)
Evaluation\Evaluator.cs (2)
850var projectCacheItem = ProjectCacheDescriptor.FromAssemblyPath(pluginPath, pluginSettings);
Microsoft.Build.Engine.UnitTests (12)
ProjectCache\ProjectCacheTests.cs (12)
463ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache) 486var projectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache); 746ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache) 888buildParameters.ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache); 919ProjectCacheDescriptor = ProjectCacheDescriptor.FromAssemblyPath(SamplePluginAssemblyPath.Value) 996ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache) 1036ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(mockCache), 1127ProjectCacheDescriptor = ProjectCacheDescriptor.FromAssemblyPath(SamplePluginAssemblyPath.Value) 1397ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(cache), 1530ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(cache), 1588ProjectCacheDescriptor = ProjectCacheDescriptor.FromInstance(