1 override of Cardinality
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
63
public override ImportCardinality
Cardinality
33 references to Cardinality
System.ComponentModel.Composition (33)
System\ComponentModel\Composition\ExportServices.cs (1)
155
return MatchCardinality(actualCardinality, definition.
Cardinality
);
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
160
if (definition.
Cardinality
== ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
103
productImportDefinition.
Cardinality
,
System\ComponentModel\Composition\Hosting\ExportProvider.cs (8)
52
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ExactlyOne"/> and
58
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ZeroOrOne"/> or
86
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ExactlyOne"/> and
92
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ZeroOrOne"/> or
132
/// <see langword="true"/> if <see cref="ImportDefinition.
Cardinality
"/> is
136
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ZeroOrOne"/> or
169
/// if <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ExactlyOne"/>
221
definition.
Cardinality
== ImportCardinality.ZeroOrOne)
System\ComponentModel\Composition\Hosting\FilteredCatalog.Traversal.cs (2)
19
return IncludeDependencies(i => i.
Cardinality
== ImportCardinality.ExactlyOne);
42
return IncludeDependents(i => i.
Cardinality
== ImportCardinality.ExactlyOne);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
761
return import.
Cardinality
== ImportCardinality.ExactlyOne;
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
65
get { return _sourceDefinition.
Cardinality
; }
System\ComponentModel\Composition\Hosting\ScopingExtensions.cs (1)
74
if (StringComparers.ContractName.Equals(contractName, import.ContractName) && (import.
Cardinality
== importCardinality))
System\ComponentModel\Composition\Primitives\ComposablePart.cs (2)
187
/// <paramref name="exports"/> is empty and <see cref="ImportDefinition.
Cardinality
"/> is
193
/// <see cref="ImportDefinition.
Cardinality
"/> is <see cref="ImportCardinality.ZeroOrOne"/> or
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
37
/// <see cref="RequiredMetadata"/>, <see cref="ImportDefinition.
Cardinality
"/>,
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
33
/// property, and optionally, the <see cref="
Cardinality
"/>, <see cref="IsPrerequisite"/>
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
90
contractBasedImport.
Cardinality
,
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (4)
311
productImport.
Cardinality
,
324
productImport.
Cardinality
,
354
productImport.
Cardinality
,
367
productImport.
Cardinality
,
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (1)
35
if (Definition.
Cardinality
== ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
41
if (Definition.
Cardinality
!= ImportCardinality.ZeroOrMore)
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
20
productImportDefinition.RequiredMetadata, productImportDefinition.
Cardinality
, productImportDefinition.IsRecomposable, false, productImportDefinition.RequiredCreationPolicy, MetadataServices.EmptyMetadata, origin)
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
21
productImportDefinition.RequiredMetadata, productImportDefinition.
Cardinality
, CreationPolicy.Any, MetadataServices.EmptyMetadata, origin)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (2)
322
if (definition.
Cardinality
== ImportCardinality.ZeroOrMore && !import.ImportType.IsAssignableCollectionType)
488
if (definition.
Cardinality
== ImportCardinality.ExactlyOne)
System\ComponentModel\Composition\ReflectionModel\ReflectionMemberImportDefinition.cs (1)
35
return new ImportingMember(this, member, new ImportType(member.ReturnType,
Cardinality
));
System\ComponentModel\Composition\ReflectionModel\ReflectionParameterImportDefinition.cs (1)
34
return new ImportingParameter(this, new ImportType(ImportingLazyParameter.GetNotNullValue("parameter").ParameterType,
Cardinality
));