public void SendMessage(ProtocolMessage message) { messageSender.SendMessage(message); if (message.GetType() != typeof(OutputEvent)) { Debug.WriteLine("Send Message:" + message.ToString(), "ProtocolServer.Debug"); } }