public BehaviorGraph BuildLightGraph() { var graph = new BehaviorGraph(_observer); // Service registrations from imports allServiceRegistrations().Each(x => x(graph.Services)); setupServices(graph); _conventions.Configure(graph); // Importing behavior chains from imports var observerImporter = new ObserverImporter(graph.Observer); _imports.Each(x => { _importsConventions.Each(c => c(x.Registry)); x.ImportInto(graph); observerImporter.Import(x.Registry._observer); }); _explicits.Configure(graph); _policies.Configure(graph); _systemPolicies.Configure(graph); registerHtmlConventions(graph); return graph; }
public BehaviorGraph BuildLightGraph() { var graph = new BehaviorGraph(_observer); _scanningOperations.Each(x => x(_types)); // Service registrations from imports allServiceRegistrations().OfType<IConfigurationAction>().Each(x => x.Configure(graph)); _conventions.Configure(graph); // THIS STUFF IS OUR BIGGEST PROBLEM NOW // Importing behavior chains from imports var observerImporter = new ObserverImporter(graph.Observer); _imports.Each(x => { _importsConventions.Each(c => c(x.Registry)); x.ImportInto(graph); observerImporter.Import(x.Registry._observer); }); _explicits.Configure(graph); _policies.Configure(graph); _systemPolicies.Configure(graph); return graph; }