Пример #1
0
        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));
        }
Пример #2
0
        public void RunConfigurations()
        {
            _configurations.Each(x => {
                x.Register(this);
                x.Configure(_graph);
            });

            var types = new TypePool();
            _scanners.Each(x => x.ScanForTypes(types, _graph));
        }
Пример #3
0
        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));
        }
Пример #4
0
        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();
            }
        }