예제 #1
0
        public void Dispatcher(string message)
        {
            try
            {
                string[] input = message.Split(',');
                switch (input[0])
                {
                case "lobby":
                    lobby.SetCommand(message);
                    break;

                case "games":
                    games.SetCommand(message);
                    break;

                case "list":
                    connectionList.BroadcastSend();
                    break;
                }
            }
            catch (Exception ex)
            {
                throw new Exception("METHOD: Dispatcher" + ex.StackTrace + ex.Message, ex.InnerException);
            }
        }
예제 #2
0
        public void Dispatcher(string message)
        {
            string[] input = message.Split(',');
            switch (input[0])
            {
            case "lobby":
                lobby.SetCommand(message);
                break;

            case "games":
                games.SetCommand(message);
                break;

            case "list":
                connectionList.BroadcastSend();
                break;
            }
        }