24 references to Any
System.ComponentModel.Composition (23)
System\ComponentModel\Composition\ConstraintServices.cs (3)
45
if (requiredCreationPolicy != CreationPolicy.
Any
)
88
if (policy == CreationPolicy.
Any
)
100
CreateMetadataValueEqualsExpression(parameter, CreationPolicy.
Any
, CompositionConstants.PartCreationPolicyMetadataName)),
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (2)
88
case CreationPolicy.
Any
:
90
if (importPolicy == CreationPolicy.
Any
||
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeFactoryExport.cs (1)
56
Export? export = childContainer.CatalogExportProvider.CreateExport(_scopeFactoryExport.UnderlyingPartDefinition, _scopeFactoryExport.UnderlyingExportDefinition, false, CreationPolicy.
Any
);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (2)
106
CreationPolicy.
Any
,
110
case CreationPolicy.
Any
:
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
189
if (creationPolicy != CreationPolicy.
Any
)
600
return CreationPolicy.
Any
;
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
809
return new ContractBasedImportDefinition(contractName, requiredTypeIdentity, requiredMetadata, cardinality, false, true, CreationPolicy.
Any
, metadata);
System\ComponentModel\Composition\ImportAttribute.cs (1)
155
/// <see cref="CreationPolicy.
Any
"/> - default value, used if the importer doesn't
System\ComponentModel\Composition\ImportManyAttribute.cs (1)
133
/// <see cref="CreationPolicy.
Any
"/> - default value, used if the importer doesn't
System\ComponentModel\Composition\PartCreationPolicyAttribute.cs (2)
12
internal static readonly PartCreationPolicyAttribute Default = new PartCreationPolicyAttribute(CreationPolicy.
Any
);
29
/// <see cref="System.ComponentModel.Composition.CreationPolicy.
Any
"/>.
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (7)
26
private readonly CreationPolicy _requiredCreationPolicy = CreationPolicy.
Any
;
84
/// pass the default <see cref="CreationPolicy.
Any
"/>.
145
/// pass the default <see cref="CreationPolicy.
Any
"/>.
241
/// <see cref="CreationPolicy.
Any
"/> - default value, used if the importer doesn't
350
if (RequiredCreationPolicy == CreationPolicy.
Any
)
356
return exportPolicy == CreationPolicy.
Any
||
366
if (_requiredCreationPolicy != CreationPolicy.
Any
)
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
21
productImportDefinition.RequiredMetadata, productImportDefinition.Cardinality, CreationPolicy.
Any
, MetadataServices.EmptyMetadata, origin)
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
38
_creationPolicy = CreationPolicy.
Any
;