public void InitController() { DefaultController controller = new DefaultController(); controllerDict.Add(RequestCode.User, new UserController()); controllerDict.Add(RequestCode.Room, new RoomController()); }
void InitController() { DefaultController defaultController = new DefaultController(); controllerDict.Add(defaultController.RequestCode, defaultController); controllerDict.Add(RequestCode.User, new UserController()); }
void InitController() { DefaultController defaultController = new DefaultController(); requestDict.Add(defaultController.RequestCode, defaultController); requestDict.Add(RequestCode.User, new UserController()); requestDict.Add(RequestCode.Room, new RoomController()); requestDict.Add(RequestCode.Game, new GameController()); }
private void InitController() { DefaultController defaultController = new DefaultController(); controllerDic.Add(defaultController.RequestCode, defaultController); UserController userController = new UserController(); controllerDic.Add(userController.RequestCode, userController); }
/// <summary> /// 初始化所有Controller /// </summary> private void InitControllers() { //TODO 根据RequestCode初始化各种Controller DefaultController defaultController = new DefaultController(); controllerDict.Add(defaultController.RequestCode, defaultController); //将默认Controller添加至管理字典中 controllerDict.Add(RequestCode.User, new UserController()); //添加新实例化的UserController controllerDict.Add(RequestCode.Room, new RoomController()); //添加新实例化的RoomController controllerDict.Add(RequestCode.Game, new GameController()); //添加新实例化的GameController }
private void InitController() { DefaultController defaultController = new DefaultController(); controllerDic.Add(defaultController.RequestCode, defaultController); UserController userController = new UserController(); controllerDic.Add(userController.RequestCode, userController); RoomController roomController = new RoomController(); controllerDic.Add(roomController.RequestCode, roomController); GameController gameController = new GameController(); controllerDic.Add(gameController.RequestCode, gameController); }
void Init() { DefaultController defaultController = new DefaultController(); controllerDict.Add(defaultController.RequestCode, defaultController); }