/// <summary> /// Main service start method. /// </summary> internal static void Main() { // initializing logger Logger.Initialize(); // setting unhandled exceptions handler AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); // initializing user connections listener UserConnectionsListener.Initialize ( new IPEndPoint ( IPAddress.Parse(Settings.Default.LoginServiceAddress), Settings.Default.LoginServicePort ), Settings.Default.LoginServiceBacklog, Settings.Default.LoginServiceEnableFirewall ); // initializing cache server connection CacheServiceConnection.Initialize ( new IPEndPoint ( IPAddress.Parse(Settings.Default.CacheServiceAddress), Settings.Default.CacheServicePort ), Settings.Default.CacheServiceReconnectInterval); while (Console.ReadKey(true) != null) { } }
/// <summary> /// Main service start method. /// </summary> internal static void Main() { Logger.Initialize(); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); GameServiceListener.Initialize ( new IPEndPoint ( IPAddress.Parse(Settings.Default.GameServiceAddress), Settings.Default.GameServicePort ), Settings.Default.GameServiceEnableFirewall ); CacheServiceConnection.Initialize ( new IPEndPoint ( IPAddress.Parse ( Settings.Default.CacheServiceAddress), Settings.Default.CacheServicePort ), Settings.Default.CacheServiceReconnectInterval ); UserConnectionsListener.Initialize ( new IPEndPoint ( IPAddress.Parse(Settings.Default.WorldAddress), Settings.Default.WorldPort ), 1000, false // to settings ); while (Console.ReadKey(true) != null) { } }