private void OnMessageReceived(IPEndPoint endpoint, byte[] bytes) { var message = _serializer.ParseMessage(endpoint, bytes); if (message != null) { _messageProcessor.AddMessage(message); } _connection.Listen(OnMessageReceived); }