www.pudn.com > Wcell.rar > Program.cs


/************************************************************************* 
 * 
 *   file		: Program.cs 
 *   copyright		: (C) The WCell Team 
 *   email		: info@wcell.org 
 *   last changed	: $LastChangedDate: 2008-03-11 15:00:38 +0800 (星期二, 11 三月 2008) $ 
 *   last author	: $LastChangedBy: tobz $ 
 *   revision		: $Rev: 193 $ 
 * 
 *   This program is free software; you can redistribute it and/or modify 
 *   it under the terms of the GNU General Public License as published by 
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version. 
 * 
 *************************************************************************/ 
 
using Cell.Core; 
using NLog; 
using System.Runtime; 
 
namespace WCell.RealmServerConsole 
{ 
    internal class Program 
    { 
		private static readonly Logger s_log = LogManager.GetCurrentClassLogger(); 
 
        private static void Main(string[] args) 
        { 
			s_log.Info("Starting the realm server console!"); 
 
			if (GCSettings.IsServerGC) 
			{ 
				GCSettings.LatencyMode = GCLatencyMode.Batch; 
			} 
			else 
			{ 
				GCSettings.LatencyMode = GCLatencyMode.Interactive; 
			} 
 
            LoadRealmServer(); 
 
            CommandConsole.FindCommands(); 
            CommandConsole.Run(); 
        } 
 
        private static void LoadRealmServer() 
        { 
            RealmServer.Program.Start(); 
        } 
    } 
}