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); }
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); }
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); }