Exemple #1
0
        public static Network GetNetwork(Core.Core core, string path)
        {
            var parts   = path.Split('/');
            var network = core.GetNetwork(parts[1]);

            if (network == null)
            {
                throw new Exception("Network not found! " + path + " " + parts[1]);
            }
            return(network);
        }
Exemple #2
0
        public static Node GetNode(Core.Core core, string path)
        {
            var parts   = path.Split('/');
            var network = core.GetNetwork(parts[1]);
            var node    = network.GetNode(parts[2]);

            if (node == null)
            {
                throw new Exception("Not not found! " + path + " " + parts[2]);
            }
            return(node);
        }