コード例 #1
0
        static void Main(string[] args)
        {
            serverService = new ServerService();

            Model.Server.Thread = new Thread(() => serverService.Start());
            Model.Server.Thread.IsBackground = true;
            Model.Server.Thread.Start();

            while (true)
            {
                serverService.Commands(Console.ReadLine());
            }
        }
コード例 #2
0
        static void Main(string[] args)
        {
            var server = new ServerService(8005);

            server.Start();
        }