4 instantiations of ExportBuilder
System.ComponentModel.Composition.Registration (4)
System\ComponentModel\Composition\Registration\PartBuilder.cs (4)
52
var exportBuilder = new
ExportBuilder
();
66
ExportBuilder exportBuilder = new
ExportBuilder
().AsContractType<T>();
347
ExportBuilder exportBuilder = new
ExportBuilder
();
501
var exportBuilder = new
ExportBuilder
();
29 references to ExportBuilder
System.ComponentModel.Composition.Registration (29)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (6)
18
public
ExportBuilder
AsContractType<T>()
23
public
ExportBuilder
AsContractType(Type type)
29
public
ExportBuilder
AsContractName(string contractName)
35
public
ExportBuilder
Inherited()
41
public
ExportBuilder
AddMetadata(string name, object value)
49
public
ExportBuilder
AddMetadata(string name, Func<Type, object> itemFunc)
System\ComponentModel\Composition\Registration\PartBuilder.cs (18)
15
private readonly List<
ExportBuilder
> _typeExportBuilders;
28
private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportBuilder
>, Type>> _propertyExports;
30
private readonly List<Tuple<Predicate<Type>, Action<Type,
ExportBuilder
>>> _interfaceExports;
39
_typeExportBuilders = new List<
ExportBuilder
>();
40
_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportBuilder
>, Type>>();
42
_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type,
ExportBuilder
>>>();
50
public PartBuilder Export(Action<
ExportBuilder
> exportConfiguration)
52
var
exportBuilder = new ExportBuilder();
64
public PartBuilder Export<T>(Action<
ExportBuilder
> exportConfiguration)
66
ExportBuilder
exportBuilder = new ExportBuilder().AsContractType<T>();
100
Action<Type,
ExportBuilder
> exportConfiguration)
124
Action<PropertyInfo,
ExportBuilder
> exportConfiguration)
148
Action<PropertyInfo,
ExportBuilder
> exportConfiguration)
263
foreach (
ExportBuilder
export in _typeExportBuilders)
343
foreach (Tuple<Predicate<Type>, Action<Type,
ExportBuilder
>> exportSpecification in _interfaceExports)
347
ExportBuilder
exportBuilder = new ExportBuilder();
497
foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportBuilder
>, Type> exportSpecification in _propertyExports)
501
var
exportBuilder = new ExportBuilder();
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (5)
16
private readonly Action<
ExportBuilder
> _configureExport;
20
Action<
ExportBuilder
> configureExport = null)
37
public void ConfigureExport(PropertyInfo _,
ExportBuilder
exportBuilder)
175
Action<
ExportBuilder
> exportConfiguration)
194
Action<
ExportBuilder
> exportConfiguration)