static void Main(string[] args) { Console.CancelKeyPress += Console_CancelKeyPress; try { Log.ApplyDefaultsForConsoleApplication(); using (Engine = ServerUtility.CreateEngine(args)) { ServerUtility.DumpEngineSettings(Engine); Log.Trace("Entering server main loop"); Engine.MainLoop(); Log.Trace("Leaved server main loop"); } } catch (Exception exception) { Log.TraceException("Program::Main", exception); } Log.Trace("STOP"); }