private void timer1_Tick(object sender, EventArgs e) { foreach (Tuple <Tuple <ServiceInfos, IPEndPoint>, int> tuple in ServiceCatalogue.GetAllInfos()) { CheckIfStillHere(tuple.Item2); } }
private void UnregisterByName(string service) { foreach (Tuple <Tuple <ServiceInfos, IPEndPoint>, int> tuple in ServiceCatalogue.GetAllInfos()) { if (tuple.Item1.Item1.Service == service) { ServiceCatalogue.Unregister(service); } } }
private void UnregisterById(int id) { foreach (Tuple <Tuple <ServiceInfos, IPEndPoint>, int> tuple in ServiceCatalogue.GetAllInfos()) { if (tuple.Item2 == id) { ServiceCatalogue.Unregister(tuple.Item1.Item1.Service); } } }