public void ScanForTypes(TypePool types, PluginGraph pluginGraph) { var registry = new Registry(); types.For(_assemblies, _filter).Each( type => _conventions.Each(c => c.Process(type, registry))); registry.As <IPluginGraphConfiguration>().Configure(pluginGraph); _postScanningActions.Each(x => x(pluginGraph)); }
public void RunConfigurations() { _configurations.Each(x => { x.Register(this); x.Configure(_graph); }); var types = new TypePool(); _scanners.Each(x => x.ScanForTypes(types, _graph)); }
public void RunConfigurations() { _configurations.Each(x => { // Change this to using the FubuCore.Description later _graph.Log.StartSource(x.ToString()); x.Register(this); x.Configure(_graph); }); var types = new TypePool(_graph); _scanners.Each(x => x.ScanForTypes(types, _graph)); }
public void RunConfigurations() { _configurations.Each(x => { x.Register(this); x.Configure(_graph); }); var types = new TypePool(); _scanners.Each(x => x.ScanForTypes(types, _graph)); // Recursive scanning if (_graph.QueuedRegistries.Any()) { var builder = new PluginGraphBuilder(_graph); while (_graph.QueuedRegistries.Any()) { var registry = _graph.QueuedRegistries.Dequeue(); builder.Add(registry); } builder.Build(); } }