Start() public method

public Start ( ) : void
return void
Esempio n. 1
0
        public static void Main(string[] args)
        {
            var serverApp = new GameServerApp();

            // start the server
            serverApp.Start();

            // add shutdown hook to close & disconnect the server
            // gracefully if the application is killed
            AppDomain.CurrentDomain.ProcessExit += (s, e) =>
            {
                serverApp.Stop();
                Console.WriteLine("Server is terminating.");
            };
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            var serverApp = new GameServerApp();

            // start the server
            serverApp.Start();

            // add shutdown hook to close & disconnect the server
            // gracefully if the application is killed
            AppDomain.CurrentDomain.ProcessExit += (s, e) =>
            {
                serverApp.Stop();
                Console.WriteLine("Server is terminating.");
            };
        }
Esempio n. 3
0
        public static void Main()
        {
            Console.Title = "GW2Emu game server";

            GameServerApp serverApp = new GameServerApp();

            // register the event handlers
            serverApp.RegisterHandlers();

            // start the server
            serverApp.Start();

            // add shutdown hook to close & disconnect the server
            // gracefully if the application is killed
            AppDomain.CurrentDomain.ProcessExit += delegate
            {
                serverApp.Stop();
                Console.WriteLine("Server is terminating.");
            };
        }