private void Initialize() { this.Log(""); this.Log("\t- WvsLogin v{0}.{1} -", Constants.MapleVersion, Constants.PatchLocation); this.Log(""); try { this.Loga("Initializing Login Server... "); LoginServer.Initialize(); this.Log("Done."); new Delay(15 * 1000, () => { GC.Collect(GC.MaxGeneration, GCCollectionMode.Optimized); }).Execute(); this.Log(""); this.Invoke(new MethodInvoker(() => { this.Text += string.Format(" ({0})", Program.ConfigurationFile); })); } catch (Exception e) { this.Log("Failed."); this.Log(""); this.Log(e.ToString()); } }
static void Main(string[] args) { Logger.Init(); StartTime = Environment.TickCount; Settings.Initialize(); Logger.Info("Settings loaded !"); Logger.Stage("Database"); DatabaseManager.Initialize(); DatabaseCache.Initialize(); Logger.Stage("Network"); LoginServer.Initialize(); InterServer.Initialize(); Logger.Info("Tera started in " + (Environment.TickCount - StartTime) + "ms"); while (true) { Console.ReadLine(); } }