public RdsAppList(RdsServer _HostServer) { RdsServerIds = new RdsServerIdList(); //this.ServerList = new RdsServerList(false); //this.ServerList.Add(_HostServer); this.RefreshList(); }
public static string GetHostnameFromGuid(System.Guid _GUID) { string hostname = null; try { string url = (string)Registry.GetValue(RdsServer.GetFeedRegistryKeyString(_GUID), "URL", ""); if (!string.IsNullOrWhiteSpace(url)) { Uri uri = new Uri(url); hostname = uri.Host; } } catch (System.Exception x) { Jrfc.Exception.HandleException(x); } return(hostname); }