public ConfigurationItemFactory(params Assembly[] assemblies)
{
this.CreateInstance = FactoryHelper.CreateInstance;
this.targets = new Factory<Target, TargetAttribute>(this);
this.filters = new Factory<Filter, FilterAttribute>(this);
this.layoutRenderers = new LayoutRendererFactory(this);
this.layouts = new Factory<Layout, LayoutAttribute>(this);
this.conditionMethods = new MethodFactory<ConditionMethodsAttribute, ConditionMethodAttribute>();
this.ambientProperties = new Factory<LayoutRenderer, AmbientPropertyAttribute>(this);
this.timeSources = new Factory<TimeSource, TimeSourceAttribute>(this);
this.allFactories = new List<object>
{
this.targets,
this.filters,
this.layoutRenderers,
this.layouts,
this.conditionMethods,
this.ambientProperties,
this.timeSources,
};
foreach (var asm in assemblies)
{
this.RegisterItemsFromAssembly(asm);
}
}