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