Exemplo n.º 1
0
        public PathProfile[] GetPathsFromRoot(IServiceAddress root)
        {
            InspectNetwork();

            // Check machine is in the schema,
            MachineProfile machine_p = CheckMachineInNetwork(root);

            RequestMessage request = new RequestMessage("pathReport");
            Message        m       = Command(root, ServiceType.Root, request);

            if (m.HasError)
            {
                throw new NetworkAdminException(m.ErrorMessage);
            }

            string[] paths = (string[])m.Arguments[0].Value;
            string[] funs  = (string[])m.Arguments[1].Value;

            PathProfile[] list = new PathProfile[paths.Length];
            for (int i = 0; i < paths.Length; ++i)
            {
                list[i] = new PathProfile(root, paths[i], funs[i]);
            }

            return(list);
        }
Exemplo n.º 2
0
        public PathProfile[] GetPathsFromRoot(IServiceAddress root)
        {
            InspectNetwork();

            // Check machine is in the schema,
            MachineProfile machine_p = CheckMachineInNetwork(root);

            RequestMessage request = new RequestMessage("pathReport");
            Message m = Command(root, ServiceType.Root, request);
            if (m.HasError)
                throw new NetworkAdminException(m.ErrorMessage);

            string[] paths = (string[])m.Arguments[0].Value;
            string[] funs = (string[])m.Arguments[1].Value;

            PathProfile[] list = new PathProfile[paths.Length];
            for (int i = 0; i < paths.Length; ++i) {
                list[i] = new PathProfile(root, paths[i], funs[i]);
            }

            return list;
        }