Stop() публичный Метод

public Stop ( ) : void
Результат void
Пример #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.");
            };
        }
Пример #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.");
            };
        }
Пример #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.");
            };
        }