示例#1
0
        protected ExternalNode AddTestNode <T>(string name) where T : FubuRegistry
        {
            var graph = Context.Service <ChannelGraph>();
            var node  = new ExternalNode(name, typeof(T), graph);

            node = TestNodes.AddNode(name, node);
            return(node);
        }
示例#2
0
        public static ExternalNode AddNode(string name, ExternalNode node)
        {
            ExternalNode actualNode;

            if (Nodes.TryGetValue(name, out actualNode))
            {
                return(actualNode);
            }

            node.Start();
            Nodes[name] = node;
            return(node);
        }