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