public ServerLoadUpdater(ServerFarm svrFarm) { _svrFarm = svrFarm; }
private static void _LoadFromFile() { string sServerCfgPath = (null == _sCfgFile) ? _GetConfigFilePath() : _sCfgFile; StreamReader fs = new StreamReader(sServerCfgPath); XmlReader reader = new XmlTextReader(fs); XmlSerializer serializer = new XmlSerializer(typeof(ServerFarm)); _svrFarm = (ServerFarm)serializer.Deserialize(reader); fs.Close(); }