public ConfigGraph(Assembly applicationAssembly) { _applicationAssembly = applicationAssembly; _actionSourceAggregator = new ActionSourceAggregator(_applicationAssembly); _sources.Add(_actionSourceAggregator); }
public ConfigGraph(Assembly applicationAssembly) { _applicationAssembly = applicationAssembly; _actionSourceAggregator = new ActionSourceAggregator(_applicationAssembly); _sources.Add(_actionSourceAggregator); _sources.Add(_handlers); }
public ConfigGraph(Assembly applicationAssembly) { _applicationAssembly = applicationAssembly; _actionSourceAggregator = new ActionSourceAggregator(_applicationAssembly); _sources.Add(_actionSourceAggregator); _sources.Add(_handlers); _sources.Add(new ActionlessViewChainSource()); }
private static void discoverChains(ConfigGraph config, BehaviorGraph graph) { var chainSources = config.Sources.Union(config.UniqueImports()).ToList(); if (FubuMode.InDevelopment()) { var aggregator = new ActionSourceAggregator(null); aggregator.Add(new RegisterAbout()); chainSources.Add(aggregator); } var tasks = chainSources.Select( x => { return Task.Factory.StartNew(() => { x.BuildChains(graph.Settings).Each(chain => graph.AddChain(chain)); }); }).ToArray(); Task.WaitAll(tasks); }