示例#1
0
        static void test1()
        {
            var c = new BaseLoginTest();

            var userName = Guid.NewGuid().ToString().Substring(0, 4);
            c.Start(userName, "111");
        }
示例#2
0
文件: Program.cs 项目: xiaobodu/DogSE
        private static void Main(string[] args)
        {
            Logs.AddConsoleAppender();

            GameServerService.StartTaskThread();

            var c = new BaseLoginTest();

            var userName = Guid.NewGuid().ToString().Substring(0, 4);
            c.Start(userName, "111");

            while (true)
            {
                if (Console.ReadKey(false).Key == ConsoleKey.Escape)
                    break;
                Thread.Sleep(100);
            }

            GameServerService.RunType = ServerStateType.Closing;
        }