12 references to AttributedModelDiscovery
System.ComponentModel.Composition (12)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (4)
41
ReflectionComposablePartDefinition definition =
AttributedModelDiscovery
.CreatePartDefinition(attributedPart.GetType(), PartCreationPolicyAttribute.Shared, true, (ICompositionElement?)null);
58
ReflectionComposablePartDefinition definition =
AttributedModelDiscovery
.CreatePartDefinition(mappedType, PartCreationPolicyAttribute.Shared, true, (ICompositionElement?)null);
76
IAttributedImport attributedImport =
AttributedModelDiscovery
.GetAttributedImport(reflectionParameter, parameter);
113
IAttributedImport attributedImport =
AttributedModelDiscovery
.GetAttributedImport(reflectionMember, member);
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (2)
423
ReflectionMemberImportDefinition importDefinition =
AttributedModelDiscovery
.CreateMemberImportDefinition(member, this);
433
ReflectionParameterImportDefinition importDefinition =
AttributedModelDiscovery
.CreateParameterImportDefinition(parameter, this);
System\ComponentModel\Composition\AttributedModelServices.cs (5)
30
return
AttributedModelDiscovery
.CreatePart(attributedPart);
38
return
AttributedModelDiscovery
.CreatePart(attributedPart, reflectionContext);
52
return
AttributedModelDiscovery
.CreatePart(reflectionComposablePartDefinition, attributedPart);
67
return
AttributedModelDiscovery
.CreatePartDefinitionIfDiscoverable(type, origin)!;
71
return
AttributedModelDiscovery
.CreatePartDefinition(type, null, false, origin);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
269
var definition =
AttributedModelDiscovery
.CreatePartDefinitionIfDiscoverable(type, _definitionOrigin);