5 instantiations of PartCreationPolicy
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
StubVsServiceExporter`1.cs (1)
16[PartCreationPolicy(CreationPolicy.NonShared)]
StubVsServiceExporter`2.cs (1)
23[PartCreationPolicy(CreationPolicy.NonShared)]
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\PartCreationPolicyAttribute.cs (2)
12internal static readonly PartCreationPolicyAttribute Default = new PartCreationPolicyAttribute(CreationPolicy.Any); 13internal static readonly PartCreationPolicyAttribute Shared = new PartCreationPolicyAttribute(CreationPolicy.Shared);
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
282attributes.Add(new PartCreationPolicyAttribute(_creationPolicy));
11 references to PartCreationPolicy
System.ComponentModel.Composition (10)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (3)
27public static ReflectionComposablePartDefinition CreatePartDefinition(Type type, PartCreationPolicyAttribute? partCreationPolicy, bool ignoreConstructorImports, ICompositionElement? origin) 41ReflectionComposablePartDefinition definition = AttributedModelDiscovery.CreatePartDefinition(attributedPart.GetType(), PartCreationPolicyAttribute.Shared, true, (ICompositionElement?)null); 58ReflectionComposablePartDefinition definition = AttributedModelDiscovery.CreatePartDefinition(mappedType, PartCreationPolicyAttribute.Shared, true, (ICompositionElement?)null);
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (4)
21private PartCreationPolicyAttribute? _partCreationPolicy; 27public AttributedPartCreationInfo(Type type, PartCreationPolicyAttribute? partCreationPolicy, bool ignoreConstructorImports, ICompositionElement? origin) 178_partCreationPolicy ??= _type.GetFirstAttribute<PartCreationPolicyAttribute>() ?? PartCreationPolicyAttribute.Default;
System\ComponentModel\Composition\PartCreationPolicyAttribute.cs (3)
12internal static readonly PartCreationPolicyAttribute Default = new PartCreationPolicyAttribute(CreationPolicy.Any); 13internal static readonly PartCreationPolicyAttribute Shared = new PartCreationPolicyAttribute(CreationPolicy.Shared); 16/// Initializes a new instance of the <see cref="PartCreationPolicyAttribute"/> class.
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
275bool isConfigured = type.GetCustomAttributes(typeof(PartCreationPolicyAttribute), false).FirstOrDefault() != null;