1 type derived from PartConventionBuilder
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
14
public class PartConventionBuilder<T> :
PartConventionBuilder
3 instantiations of PartConventionBuilder
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (3)
55
var partBuilder = new
PartConventionBuilder
((t) => IsDescendentOf(t, type));
84
var partBuilder = new
PartConventionBuilder
((t) => t == type);
121
var partBuilder = new
PartConventionBuilder
(typeFilter);
40 references to PartConventionBuilder
System.Composition.Convention (40)
System\Composition\Convention\ConventionBuilder.cs (12)
17
private readonly List<
PartConventionBuilder
> _conventions = new List<
PartConventionBuilder
>();
47
/// <returns>A <see cref="
PartConventionBuilder
"/> that must be used to specify the rule.</returns>
48
public
PartConventionBuilder
ForTypesDerivedFrom(Type type)
55
var
partBuilder = new PartConventionBuilder((t) => IsDescendentOf(t, type));
76
/// <returns>A <see cref="
PartConventionBuilder
"/> that must be used to specify the rule.</returns>
77
public
PartConventionBuilder
ForType(Type type)
84
var
partBuilder = new PartConventionBuilder((t) => t == type);
114
public
PartConventionBuilder
ForTypesMatching(Predicate<Type> typeFilter)
121
var
partBuilder = new PartConventionBuilder(typeFilter);
134
foreach (
PartConventionBuilder
builder in _conventions.Where(c => c.SelectType(type)))
147
PartConventionBuilder
.BuildDefaultConstructorAttributes(type, ref configuredMembers);
System\Composition\Convention\PartConventionBuilder.cs (28)
54
public
PartConventionBuilder
Export()
66
public
PartConventionBuilder
Export(Action<ExportConventionBuilder> exportConfiguration)
83
public
PartConventionBuilder
Export<T>()
95
public
PartConventionBuilder
Export<T>(Action<ExportConventionBuilder> exportConfiguration)
113
public
PartConventionBuilder
SelectConstructor(Func<IEnumerable<ConstructorInfo>, ConstructorInfo> constructorSelector)
130
public
PartConventionBuilder
SelectConstructor(Func<IEnumerable<ConstructorInfo>, ConstructorInfo> constructorSelector,
148
public
PartConventionBuilder
ExportInterfaces(Predicate<Type> interfaceFilter)
162
public
PartConventionBuilder
ExportInterfaces()
173
public
PartConventionBuilder
ExportInterfaces(Predicate<Type> interfaceFilter,
188
private
PartConventionBuilder
ExportInterfacesImpl(Predicate<Type> interfaceFilter,
200
public
PartConventionBuilder
ExportProperties(Predicate<PropertyInfo> propertyFilter)
216
public
PartConventionBuilder
ExportProperties(Predicate<PropertyInfo> propertyFilter,
231
private
PartConventionBuilder
ExportPropertiesImpl(Predicate<PropertyInfo> propertyFilter,
244
public
PartConventionBuilder
ExportProperties<T>(Predicate<PropertyInfo> propertyFilter)
261
public
PartConventionBuilder
ExportProperties<T>(Predicate<PropertyInfo> propertyFilter,
276
private
PartConventionBuilder
ExportPropertiesImpl<T>(Predicate<PropertyInfo> propertyFilter,
288
public
PartConventionBuilder
ImportProperties(Predicate<PropertyInfo> propertyFilter)
304
public
PartConventionBuilder
ImportProperties(Predicate<PropertyInfo> propertyFilter,
319
private
PartConventionBuilder
ImportPropertiesImpl(Predicate<PropertyInfo> propertyFilter,
332
public
PartConventionBuilder
ImportProperties<T>(Predicate<PropertyInfo> propertyFilter)
349
public
PartConventionBuilder
ImportProperties<T>(Predicate<PropertyInfo> propertyFilter,
364
private
PartConventionBuilder
ImportPropertiesImpl<T>(Predicate<PropertyInfo> propertyFilter,
376
public
PartConventionBuilder
NotifyImportsSatisfied(Predicate<MethodInfo> methodFilter)
386
public
PartConventionBuilder
Shared()
396
public
PartConventionBuilder
Shared(string sharingBoundary)
411
private
PartConventionBuilder
SharedImpl(string sharingBoundary)
424
public
PartConventionBuilder
AddPartMetadata(string name, object value)
447
public
PartConventionBuilder
AddPartMetadata(string name, Func<Type, object> getValueFromPartType)