예제 #1
0
 // ----------------------------------------------------
 // Misc
 // ----------------------------------------------------
 public ServerInfo GetServerInfo(string code, Provider provider)
 {
     ServerInfo infoServer = null;
     if (m_servers.ContainsKey(code))
         infoServer = m_servers[code];
     if (infoServer == null)
     {
         // Create
         infoServer = new ServerInfo();
         infoServer.Provider = provider;
         infoServer.Code = code;
         m_servers[code] = infoServer;
     }
     infoServer.Deleted = false;
     return infoServer;
 }