public HostInformation GetCollectionLocation(string CollectionID) { HostInformation hostinformation = null; CatalogEntry catEntry = Catalog.GetEntryByCollectionID(CollectionID); if (catEntry != null) { HostNode hostnode = HostNode.GetHostByID(store.DefaultDomain, catEntry.HostID); if (hostnode != null) { hostinformation = new HostInformation(hostnode); } } return(hostinformation); }
public HostInformation[] GetHosts() { HostInformation[] infoList; HostNode[] hosts = HostNode.GetHosts(hostDomain.ID); if (hosts.Length > 0) { infoList = new HostInformation[hosts.Length]; int i = 0; foreach (HostNode hn in hosts) { infoList[i++] = new HostInformation(hn); } } else { infoList = new HostInformation[0]; } return(infoList); }