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); } }
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; } }