Ejemplo n.º 1
0
        public void AddHost(Host host)
        {
            int distanceLimitForAddingHost = 600;
            int allownedHostsCount         = (Route.Distance / distanceLimitForAddingHost) + 1;

            if (HostCollection.Length < allownedHostsCount)
            {
                HostCollection.Add(host);
            }
        }
Ejemplo n.º 2
0
 public void RemoveHost(Host host)
 {
     HostCollection.Remove(host);
 }