public void Broadcast(IMessage msg, AppType appType)
 {
     foreach (KeyValuePair <IPEndPoint, int> kv in serverIPs)
     {
         if (AppTypeHelper.Is(kv.Value, appType))
         {
             Send(ipEndPoint, msg);
         }
     }
 }
 public ETTask <Session> Get(AppType appType)
 {
     foreach (KeyValuePair <IPEndPoint, int> kv in serverIPs)
     {
         if (AppTypeHelper.Is(kv.Value, appType))
         {
             return(Get(kv.Key));
         }
     }
     return(ETTask.FromResult <Session>(null));
 }
 public IPEndPoint GetIPEndPoint(AppType appType)
 {
     foreach (KeyValuePair <IPEndPoint, int> kv in serverIPs)
     {
         if (AppTypeHelper.Is(kv.Value, appType))
         {
             return(kv.Key);
         }
     }
     return(null);
 }