7 references to MetadataConstraints
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (1)
34
var importMany = contract.
MetadataConstraints
.Contains(new KeyValuePair<string, object>("IsImportMany", true));
Microsoft.DotNet.AsmDiff (2)
MefHelpers.cs (2)
45
if (contract.
MetadataConstraints
!= null)
47
var subsetOfConstraints = contract.
MetadataConstraints
.Where(c => Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => Metadata[c.Key]);
System.Composition.TypedParts (4)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (2)
28
if (contract.
MetadataConstraints
!= null)
30
var subsetOfConstraints = contract.
MetadataConstraints
.Where(c => Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => Metadata[c.Key]);
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (2)
79
if (contract.
MetadataConstraints
!= null)
89
var subsettedConstraints = contract.
MetadataConstraints
.Where(c => export.Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => export.Metadata[c.Key]);