Exemplo n.º 1
0
 public Dictionary <int, ServerInfoVO> GetAllSeverInfos()
 {
     if (allSeverInfos == null)
     {
         allSeverInfos = new Dictionary <int, ServerInfoVO>();
         int count = 0;
         Dictionary <string, DeployConfigInfo> deployinfo = ConfigDataManager.GetDeployConfigInfos();
         if (deployinfo != null)
         {
             foreach (KeyValuePair <string, DeployConfigInfo> info in deployinfo)
             {
                 if (info.Value.port != -1)
                 {
                     ServerInfoVO severinfo = new ServerInfoVO();
                     severinfo.Type       = info.Value.type;
                     severinfo.IP         = info.Value.value;
                     severinfo.Port       = info.Value.port;
                     severinfo.Name       = info.Value.name;
                     severinfo.ID         = info.Value.severId;
                     allSeverInfos[count] = severinfo;
                     count++;
                 }
             }
         }
     }
     return(allSeverInfos);
 }