Beispiel #1
0
        public void ClearDiscoveredServers()
        {
            if (DiscoveredServers == null)
            {
                DiscoveredServers = new List <ClientServerInformation>();
            }

            DiscoveredServers.Clear();
        }
Beispiel #2
0
        /// <summary>
        /// Get the client object for a specified server
        /// </summary>
        public HatClient GetHatClient(string hostName)
        {
            if (DiscoveredServers.ContainsKey(hostName))
            {
                return(DiscoveredServers[hostName]);
            }

            return(null);
        }
Beispiel #3
0
 public void AddDiscoveredServer(ClientServerInformation clientServerInformation)
 {
     DiscoveredServers.Add(clientServerInformation);
     InvokeOnServerDiscovered(clientServerInformation, DiscoveredServers.Count - 1);
 }