Пример #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     foreach (Tuple <Tuple <ServiceInfos, IPEndPoint>, int> tuple in ServiceCatalogue.GetAllInfos())
     {
         CheckIfStillHere(tuple.Item2);
     }
 }
Пример #2
0
 private void UnregisterByName(string service)
 {
     foreach (Tuple <Tuple <ServiceInfos, IPEndPoint>, int> tuple in ServiceCatalogue.GetAllInfos())
     {
         if (tuple.Item1.Item1.Service == service)
         {
             ServiceCatalogue.Unregister(service);
         }
     }
 }
Пример #3
0
 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);
         }
     }
 }