示例#1
0
文件: Main.cs 项目: MorBrisker/AP2
        public static void Main(string[] args)
        {
            IController c = new Controller();
            IModel      m = new Model(c);

            c.SetModel(m);
            c.AddCommands();
            IClientHandler ch     = new ClientHandler(c);
            int            port   = int.Parse(ConfigurationManager.AppSettings["PORT"]);
            Server         server = new Server(port, ch);

            server.Start();
        }