1 write to _metadataConstraints
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
52
_metadataConstraints
= metadataConstraints;
12 references to _metadataConstraints
System.Composition.Runtime (12)
System\Composition\Hosting\Core\CompositionContract.cs (12)
69
public IEnumerable<KeyValuePair<string, object>> MetadataConstraints =>
_metadataConstraints
;
82
ConstraintEqual(
_metadataConstraints
, contract.
_metadataConstraints
);
94
if (
_metadataConstraints
!= null)
95
hc ^= ConstraintHashCode(
_metadataConstraints
);
110
if (
_metadataConstraints
!= null)
113
_metadataConstraints
.Select(kv => $"{kv.Key} = {Formatters.Format(kv.Value)}")));
128
return new CompositionContract(newContractType, _contractName,
_metadataConstraints
);
151
if (
_metadataConstraints
== null)
154
if (!
_metadataConstraints
.TryGetValue(constraintName, out object value))
161
if (
_metadataConstraints
.Count == 1)
167
var remainingConstraints = new Dictionary<string, object>(
_metadataConstraints
);