2 instantiations of ImportConventionBuilder
System.Composition.Convention (2)
System\Composition\Convention\PartConventionBuilder.cs (2)
664
var importBuilder = new
ImportConventionBuilder
();
751
var importBuilder = new
ImportConventionBuilder
();
30 references to ImportConventionBuilder
System.Composition.Convention (30)
System\Composition\Convention\ImportConventionBuilder.cs (7)
31
public
ImportConventionBuilder
AsContractName(string contractName)
51
public
ImportConventionBuilder
AsContractName(Func<Type, string> getContractNameFromPartType)
66
public
ImportConventionBuilder
AsMany()
76
public
ImportConventionBuilder
AsMany(bool isMany)
87
public
ImportConventionBuilder
AllowDefault()
99
public
ImportConventionBuilder
AddMetadataConstraint(string name, object value)
122
public
ImportConventionBuilder
AddMetadataConstraint(string name, Func<Type, object> getConstraintValueFromPartType)
System\Composition\Convention\ParameterImportConventionBuilder.cs (1)
30
public T Import<T>(Action<
ImportConventionBuilder
> configure)
System\Composition\Convention\PartConventionBuilder.cs (12)
30
private Action<ParameterInfo,
ImportConventionBuilder
> _configureConstructorImports;
34
private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportConventionBuilder
>>> _propertyImports;
45
_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportConventionBuilder
>>>();
131
Action<ParameterInfo,
ImportConventionBuilder
> importConfiguration)
305
Action<PropertyInfo,
ImportConventionBuilder
> importConfiguration)
320
Action<PropertyInfo,
ImportConventionBuilder
> importConfiguration)
350
Action<PropertyInfo,
ImportConventionBuilder
> importConfiguration)
365
Action<PropertyInfo,
ImportConventionBuilder
> importConfiguration)
646
private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo,
ImportConventionBuilder
> configureConstructorImports)
664
var
importBuilder = new ImportConventionBuilder();
745
foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ImportConventionBuilder
>> importSpecification in _propertyImports)
751
var
importBuilder = new ImportConventionBuilder();
System\Composition\Convention\PartConventionBuilderOfT.cs (10)
73
private readonly Action<
ImportConventionBuilder
> _configureImport;
78
Action<
ImportConventionBuilder
> configureImport = null,
91
public void ConfigureImport(PropertyInfo _,
ImportConventionBuilder
importBuilder)
135
private Dictionary<ParameterInfo, Action<
ImportConventionBuilder
>> _importBuilders;
147
public void ConfigureConstructorImports(ParameterInfo parameterInfo,
ImportConventionBuilder
importBuilder)
151
if (_importBuilders.TryGetValue(parameterInfo, out Action<
ImportConventionBuilder
> parameterImportBuilder))
190
_importBuilders ??= new Dictionary<ParameterInfo, Action<
ImportConventionBuilder
>>();
191
_importBuilders.Add(parameterInfos[index], (Action<
ImportConventionBuilder
>)importDelegate);
311
Action<
ImportConventionBuilder
> importConfiguration)
343
Action<
ImportConventionBuilder
> importConfiguration)