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();
        }
Ejemplo n.º 2
0
        public FormulaService()
        {
            _Formula = new Center(new ExpansionFeature());
            _Server = new Server(_Formula, 38971);
            _Launcher = new Launcher();

            _Launcher.Push(_Server);
        }