Beispiel #1
0
 public ServerLoadUpdater(ServerFarm svrFarm)
 {
     _svrFarm = svrFarm;
 }
Beispiel #2
0
        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();
        }