22 references to CompositionServices
System.ComponentModel.Composition (22)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (8)
87
CompositionServices
.GetRequiredMetadata(importType.MetadataViewType),
92
CompositionServices
.GetImportMetadata(importType, attributedImport)));
100
CompositionServices
.GetRequiredMetadata(importType.MetadataViewType),
103
CompositionServices
.GetImportMetadata(importType, attributedImport),
124
CompositionServices
.GetRequiredMetadata(importType.MetadataViewType),
129
CompositionServices
.GetImportMetadata(importType, attributedImport)));
139
CompositionServices
.GetRequiredMetadata(importType.MetadataViewType),
144
CompositionServices
.GetImportMetadata(importType, attributedImport),
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (3)
269
if (exportAttribute.GetType() ==
CompositionServices
.InheritedExportAttributeType)
389
while (currentType != null && currentType.UnderlyingSystemType !=
CompositionServices
.ObjectType)
461
while (baseType != null && baseType.UnderlyingSystemType !=
CompositionServices
.ObjectType)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
528
object? exportedValue =
CompositionServices
.GetExportedValueFromComposedPart(
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
307
result = result.MergeResult(
CompositionServices
.TryInvoke(() =>
390
return
CompositionServices
.GetExportedValueFromComposedPart(ImportEngine, part, export);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
177
if (contractType ==
CompositionServices
.ObjectType)
283
if ((attrType !=
CompositionServices
.ExportAttributeType) && attrType.IsAttributeDefined<MetadataAttributeAttribute>(true))
295
if (pi.DeclaringType ==
CompositionServices
.ExportAttributeType || pi.DeclaringType ==
CompositionServices
.AttributeType)
System\ComponentModel\Composition\Hosting\ExportProvider.cs (2)
187
CompositionResult result =
CompositionServices
.TryFire(changedEvent, this, e);
203
CompositionResult result =
CompositionServices
.TryFire(changingEvent, this, e);
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (2)
800
IEnumerable<KeyValuePair<string, Type>> requiredMetadata =
CompositionServices
.GetRequiredMetadata(metadataViewType);
801
IDictionary<string, object?> metadata =
CompositionServices
.GetImportMetadata(type, null);