protected ExternalNode AddTestNode <T>(string name) where T : FubuTransportRegistry { var graph = Retrieve <ChannelGraph>(); var node = new ExternalNode(name, typeof(T), graph); node = TestNodes.AddNode(name, node); return(node); }
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); }