Exemplo n.º 1
0
        public void GetDFSTargets(string DFSNamespace)
        {
            List <DFSRoot> dfsTarget = new List <DFSRoot>();

            foreach (DfsTarget dfsTargetInformation in DfsTarget.GetInstances())
            {
                if (dfsTargetInformation.Name.Contains(DFSNamespace))
                {
                    DFSRoot dfsRootData = new DFSRoot(dfsNodeInformation.Name, dfsNodeInformation.Description, dfsNodeInformation.Timeout);
                    dfsTarget.Add(dfsRootData);
                }
            }

            return(dfsTarget);
        }
Exemplo n.º 2
0
        public List <DFSRoot> GetDFSRoots()
        {
            List <DFSRoot> dfsRoots = new List <DFSRoot>();

            foreach (DfsNode dfsNodeInformation in DfsNode.GetInstances())
            {
                if (dfsNodeInformation.Root)
                {
                    DFSRoot dfsRootData = new DFSRoot(dfsNodeInformation.Name, dfsNodeInformation.Description, dfsNodeInformation.Timeout);
                    dfsRoots.Add(dfsRootData);
                }
            }

            return(dfsRoots);
        }
Exemplo n.º 3
0
        public List <DFSRoot> GetDFSNamespaces(string DFSRoot)
        {
            List <DFSRoot> dfsNamespace = new List <DFSRoot>();

            foreach (DfsNode dfsNodeInformation in DfsNode.GetInstances())
            {
                if (!dfsNodeInformation.Root)
                {
                    if (dfsNodeInformation.Name.Contains(DFSRoot))
                    {
                        DFSRoot dfsRootData = new DFSRoot(dfsNodeInformation.Name, dfsNodeInformation.Description, dfsNodeInformation.Timeout);
                        dfsNamespace.Add(dfsRootData);
                    }
                }
            }

            return(dfsNamespace);
        }