2 instantiations of ImportBuilder
System.ComponentModel.Composition.Registration (2)
System\ComponentModel\Composition\Registration\PartBuilder.cs (2)
431
var importBuilder = new
ImportBuilder
();
461
var importBuilder = new
ImportBuilder
();
29 references to ImportBuilder
System.ComponentModel.Composition.Registration (29)
System\ComponentModel\Composition\Registration\ImportBuilder.cs (8)
23
public
ImportBuilder
AsContractType<T>()
28
public
ImportBuilder
AsContractType(Type type)
34
public
ImportBuilder
AsContractName(string contractName)
40
public
ImportBuilder
AsMany(bool isMany = true)
47
public
ImportBuilder
AllowDefault()
53
public
ImportBuilder
AllowRecomposition()
59
public
ImportBuilder
RequiredCreationPolicy(CreationPolicy requiredCreationPolicy)
65
public
ImportBuilder
Source(ImportSource source)
System\ComponentModel\Composition\Registration\ParameterImportBuilder.cs (1)
14
public T Import<T>(Action<
ImportBuilder
> configure)
System\ComponentModel\Composition\Registration\PartBuilder.cs (10)
25
private Action<ParameterInfo,
ImportBuilder
> _configureConstructorImports;
29
private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportBuilder
>, Type>> _propertyImports;
41
_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportBuilder
>, Type>>();
80
Action<ParameterInfo,
ImportBuilder
> importConfiguration)
172
Action<PropertyInfo,
ImportBuilder
> importConfiguration)
195
Action<PropertyInfo,
ImportBuilder
> importConfiguration)
413
private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo,
ImportBuilder
> configureConstructorImports)
431
var
importBuilder = new ImportBuilder();
457
foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportBuilder
>, Type> importSpecification in _propertyImports)
461
var
importBuilder = new ImportBuilder();
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (10)
15
private readonly Action<
ImportBuilder
> _configureImport;
19
Action<
ImportBuilder
> configureImport = null,
32
public void ConfigureImport(PropertyInfo _,
ImportBuilder
importBuilder)
76
private Dictionary<ParameterInfo, Action<
ImportBuilder
>> _importBuilders;
88
public void ConfigureConstructorImports(ParameterInfo parameterInfo,
ImportBuilder
importBuilder)
91
_importBuilders.TryGetValue(parameterInfo, out Action<
ImportBuilder
> parameterImportBuilder))
129
_importBuilders ??= new Dictionary<ParameterInfo, Action<
ImportBuilder
>>();
131
_importBuilders.Add(parameterInfos[index], (Action<
ImportBuilder
>)importDelegate);
213
Action<
ImportBuilder
> importConfiguration)
232
Action<
ImportBuilder
> importConfiguration)