2 types derived from ContractBasedImportDefinition
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
28
internal sealed class NonImportSourceImportDefinition :
ContractBasedImportDefinition
System\ComponentModel\Composition\ReflectionModel\ReflectionImportDefinition.cs (1)
9
internal abstract class ReflectionImportDefinition :
ContractBasedImportDefinition
, ICompositionElement
9 instantiations of ContractBasedImportDefinition
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (2)
84
new
ContractBasedImportDefinition
(
121
new
ContractBasedImportDefinition
(
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
99
result = new
ContractBasedImportDefinition
(
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
809
return new
ContractBasedImportDefinition
(contractName, requiredTypeIdentity, requiredMetadata, cardinality, false, true, CreationPolicy.Any, metadata);
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (1)
86
return new
ContractBasedImportDefinition
(
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
307
new
ContractBasedImportDefinition
(
350
new
ContractBasedImportDefinition
(
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (2)
221
new
ContractBasedImportDefinition
(
278
new
ContractBasedImportDefinition
(
45 references to ContractBasedImportDefinition
System.ComponentModel.Composition (45)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
89
ContractBasedImportDefinition
productImportDefinition = factoryDefinition.ProductImportDefinition;
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
595
if (definition is
ContractBasedImportDefinition
contractDefinition)
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (2)
790
ContractBasedImportDefinition
importDefinition = BuildImportDefinition(type, metadataViewType, contractName, cardinality);
794
private static
ContractBasedImportDefinition
BuildImportDefinition(Type type, Type metadataViewType, string contractName, ImportCardinality cardinality)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (4)
17
var
contractBasedDefinition = definition as
ContractBasedImportDefinition
;
30
private readonly
ContractBasedImportDefinition
_sourceDefinition;
33
public 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)
8
ContractBasedImportDefinition
ProductImportDefinition { get; }
System\ComponentModel\Composition\Primitives\PrimitivesServices.cs (2)
66
ContractBasedImportDefinition
? contractBasedImport = import as
ContractBasedImportDefinition
;
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
284
ContractBasedImportDefinition
productImport = reflectionImport;
438
private IDictionary<string, object?> TranslateImportMetadata(
ContractBasedImportDefinition
originalImport)
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (3)
12
private readonly
ContractBasedImportDefinition
_definition;
15
protected ImportingItem(
ContractBasedImportDefinition
definition, ImportType importType)
23
public
ContractBasedImportDefinition
Definition
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
19
public ImportingMember(
ContractBasedImportDefinition
definition, ReflectionWritableMember member, ImportType importType)
System\ComponentModel\Composition\ReflectionModel\ImportingParameter.cs (1)
10
public ImportingParameter(
ContractBasedImportDefinition
definition, ImportType importType)
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (3)
13
private readonly
ContractBasedImportDefinition
_productImportDefinition;
18
ContractBasedImportDefinition
productImportDefinition)
27
public
ContractBasedImportDefinition
ProductImportDefinition { get { return _productImportDefinition; } }
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (3)
14
private readonly
ContractBasedImportDefinition
_productImportDefinition;
19
ContractBasedImportDefinition
productImportDefinition)
28
public
ContractBasedImportDefinition
ProductImportDefinition { get { return _productImportDefinition; } }
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (6)
111
public static
ContractBasedImportDefinition
GetExportFactoryProductImportDefinition(ImportDefinition importDefinition)
161
public static
ContractBasedImportDefinition
CreateImportDefinition(
174
public static
ContractBasedImportDefinition
CreateImportDefinition(
200
public static
ContractBasedImportDefinition
CreateImportDefinition(
247
public static
ContractBasedImportDefinition
CreateImportDefinition(
259
public static
ContractBasedImportDefinition
CreateImportDefinition(