Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            var sw = new SpinWait();
            Program._Enable = true;
            var updater = new Updater();
            var launcher = new Launcher();

            var server = new Server();
            var serverAppliction = new Regulus.Remoting.Soul.Native.Server(server, 12345);

            var client = new Proxy();
            Program.client_UserEvent(client.SpawnUser("user"));

            launcher.Push(serverAppliction);
            updater.Add(client);

            launcher.Launch();
            while(Program._Enable)
            {
                updater.Working();
                sw.SpinOnce();
            }

            updater.Shutdown();
            launcher.Shutdown();

            Console.ReadKey();
        }