public ServerWrapper() { AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); SetupServer(); ServerProxy = new Proxy(25564, 25565, IPAddress.Any); ServerProxy.Connect(); LoadPlugins(Assembly.GetExecutingAssembly()); Start(); Say("Ready."); while (true) { string str = Console.ReadLine(); if (str == "exit") { Stop(true); } SendCommand(str); } }
public ServerWrapper() { AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit); SetupServer(); ServerProxy = new Proxy(25564, 25565, IPAddress.Any); ServerProxy.Connect(); LoadPlugins(Assembly.GetExecutingAssembly()); Start(); Say("Ready."); while (true) { string str = Console.ReadLine(); if (str == "exit") Stop(true); SendCommand(str); } }