2 types derived from ContractBasedImportDefinition
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
28internal sealed class NonImportSourceImportDefinition : ContractBasedImportDefinition
System\ComponentModel\Composition\ReflectionModel\ReflectionImportDefinition.cs (1)
9internal abstract class ReflectionImportDefinition : ContractBasedImportDefinition, ICompositionElement
9 instantiations of ContractBasedImportDefinition
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (2)
84new ContractBasedImportDefinition( 121new ContractBasedImportDefinition(
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
99result = new ContractBasedImportDefinition(
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
809return new ContractBasedImportDefinition(contractName, requiredTypeIdentity, requiredMetadata, cardinality, false, true, CreationPolicy.Any, metadata);
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
86return new ContractBasedImportDefinition(
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
307new ContractBasedImportDefinition( 350new ContractBasedImportDefinition(
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (2)
221new ContractBasedImportDefinition( 278new ContractBasedImportDefinition(
45 references to ContractBasedImportDefinition
System.ComponentModel.Composition (45)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
89ContractBasedImportDefinition productImportDefinition = factoryDefinition.ProductImportDefinition;
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
595if (definition is ContractBasedImportDefinition contractDefinition)
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (2)
790ContractBasedImportDefinition importDefinition = BuildImportDefinition(type, metadataViewType, contractName, cardinality); 794private static ContractBasedImportDefinition BuildImportDefinition(Type type, Type metadataViewType, string contractName, ImportCardinality cardinality)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (4)
17var contractBasedDefinition = definition as ContractBasedImportDefinition; 30private readonly ContractBasedImportDefinition _sourceDefinition; 33public NonImportSourceImportDefinition(ContractBasedImportDefinition sourceDefinition)
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (14)
31/// Initializes a new instance of the <see cref="ContractBasedImportDefinition"/> class. 47/// Initializes a new instance of the <see cref="ContractBasedImportDefinition"/> class 54/// <see cref="Export"/> required by the <see cref="ContractBasedImportDefinition"/>. 63/// <see cref="ContractBasedImportDefinition"/>; or <see langword="null"/> to 69/// <see cref="ContractBasedImportDefinition"/>. 72/// <see langword="true"/> if the <see cref="ContractBasedImportDefinition"/> can be satisfied 77/// <see langword="true"/> if the <see cref="ContractBasedImportDefinition"/> is required to be 108/// Initializes a new instance of the <see cref="ContractBasedImportDefinition"/> class 115/// <see cref="Export"/> required by the <see cref="ContractBasedImportDefinition"/>. 124/// <see cref="ContractBasedImportDefinition"/>; or <see langword="null"/> to 130/// <see cref="ContractBasedImportDefinition"/>. 133/// <see langword="true"/> if the <see cref="ContractBasedImportDefinition"/> can be satisfied 138/// <see langword="true"/> if the <see cref="ContractBasedImportDefinition"/> is required to be 197/// <see cref="ContractBasedImportDefinition"/>. The default is an empty
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
125/// required by the <see cref="ContractBasedImportDefinition"/>. This property should
System\ComponentModel\Composition\Primitives\IPartCreatorImportDefinition.cs (1)
8ContractBasedImportDefinition ProductImportDefinition { get; }
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (2)
66ContractBasedImportDefinition? contractBasedImport = import as ContractBasedImportDefinition;
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
284ContractBasedImportDefinition productImport = reflectionImport; 438private IDictionary<string, object?> TranslateImportMetadata(ContractBasedImportDefinition originalImport)
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (3)
12private readonly ContractBasedImportDefinition _definition; 15protected ImportingItem(ContractBasedImportDefinition definition, ImportType importType) 23public ContractBasedImportDefinition Definition
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
19public ImportingMember(ContractBasedImportDefinition definition, ReflectionWritableMember member, ImportType importType)
System\ComponentModel\Composition\ReflectionModel\ImportingParameter.cs (1)
10public ImportingParameter(ContractBasedImportDefinition definition, ImportType importType)
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (3)
13private readonly ContractBasedImportDefinition _productImportDefinition; 18ContractBasedImportDefinition productImportDefinition) 27public ContractBasedImportDefinition ProductImportDefinition { get { return _productImportDefinition; } }
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (3)
14private readonly ContractBasedImportDefinition _productImportDefinition; 19ContractBasedImportDefinition productImportDefinition) 28public ContractBasedImportDefinition ProductImportDefinition { get { return _productImportDefinition; } }
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (6)
111public static ContractBasedImportDefinition GetExportFactoryProductImportDefinition(ImportDefinition importDefinition) 161public static ContractBasedImportDefinition CreateImportDefinition( 174public static ContractBasedImportDefinition CreateImportDefinition( 200public static ContractBasedImportDefinition CreateImportDefinition( 247public static ContractBasedImportDefinition CreateImportDefinition( 259public static ContractBasedImportDefinition CreateImportDefinition(