6 instantiations of ExportConventionBuilder
System.Composition.Convention (6)
System\Composition\Convention\PartConventionBuilder.cs (6)
56
var exportBuilder = new
ExportConventionBuilder
();
73
var exportBuilder = new
ExportConventionBuilder
();
85
ExportConventionBuilder exportBuilder = new
ExportConventionBuilder
().AsContractType<T>();
102
ExportConventionBuilder exportBuilder = new
ExportConventionBuilder
().AsContractType<T>();
585
ExportConventionBuilder exportBuilder = new
ExportConventionBuilder
();
788
var exportBuilder = new
ExportConventionBuilder
();
34 references to ExportConventionBuilder
System.Composition.Convention (34)
System\Composition\Convention\ExportConventionBuilder.cs (6)
31
public
ExportConventionBuilder
AsContractType<T>()
41
public
ExportConventionBuilder
AsContractType(Type type)
57
public
ExportConventionBuilder
AsContractName(string contractName)
77
public
ExportConventionBuilder
AsContractName(Func<Type, string> getContractNameFromPartType)
94
public
ExportConventionBuilder
AddMetadata(string name, object value)
117
public
ExportConventionBuilder
AddMetadata(string name, Func<Type, object> getValueFromPartType)
System\Composition\Convention\PartConventionBuilder.cs (23)
20
private readonly List<
ExportConventionBuilder
> _typeExportBuilders;
33
private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportConventionBuilder
>, Type>> _propertyExports;
35
private readonly List<Tuple<Predicate<Type>, Action<Type,
ExportConventionBuilder
>>> _interfaceExports;
43
_typeExportBuilders = new List<
ExportConventionBuilder
>();
44
_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportConventionBuilder
>, Type>>();
46
_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type,
ExportConventionBuilder
>>>();
56
var
exportBuilder = new ExportConventionBuilder();
66
public PartConventionBuilder Export(Action<
ExportConventionBuilder
> exportConfiguration)
73
var
exportBuilder = new ExportConventionBuilder();
85
ExportConventionBuilder
exportBuilder = new ExportConventionBuilder().AsContractType<T>();
95
public PartConventionBuilder Export<T>(Action<
ExportConventionBuilder
> exportConfiguration)
102
ExportConventionBuilder
exportBuilder = new ExportConventionBuilder().AsContractType<T>();
174
Action<Type,
ExportConventionBuilder
> exportConfiguration)
189
Action<Type,
ExportConventionBuilder
> exportConfiguration)
217
Action<PropertyInfo,
ExportConventionBuilder
> exportConfiguration)
232
Action<PropertyInfo,
ExportConventionBuilder
> exportConfiguration)
262
Action<PropertyInfo,
ExportConventionBuilder
> exportConfiguration)
277
Action<PropertyInfo,
ExportConventionBuilder
> exportConfiguration)
502
foreach (
ExportConventionBuilder
export in _typeExportBuilders)
581
foreach (Tuple<Predicate<Type>, Action<Type,
ExportConventionBuilder
>> exportSpecification in _interfaceExports)
585
ExportConventionBuilder
exportBuilder = new ExportConventionBuilder();
782
foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo,
ExportConventionBuilder
>, Type> exportSpecification in _propertyExports)
788
var
exportBuilder = new ExportConventionBuilder();
System\Composition\Convention\PartConventionBuilderOfT.cs (5)
74
private readonly Action<
ExportConventionBuilder
> _configureExport;
79
Action<
ExportConventionBuilder
> configureExport = null)
96
public void ConfigureExport(PropertyInfo _,
ExportConventionBuilder
exportBuilder)
248
Action<
ExportConventionBuilder
> exportConfiguration)
281
Action<
ExportConventionBuilder
> exportConfiguration)