public void ClearDiscoveredServers() { if (DiscoveredServers == null) { DiscoveredServers = new List <ClientServerInformation>(); } DiscoveredServers.Clear(); }
/// <summary> /// Get the client object for a specified server /// </summary> public HatClient GetHatClient(string hostName) { if (DiscoveredServers.ContainsKey(hostName)) { return(DiscoveredServers[hostName]); } return(null); }
public void AddDiscoveredServer(ClientServerInformation clientServerInformation) { DiscoveredServers.Add(clientServerInformation); InvokeOnServerDiscovered(clientServerInformation, DiscoveredServers.Count - 1); }