/// <summary> /// Writes the given message out over the network using the protocol tag. For a Transaction /// this should be "tx" for example. It's safe to call this from multiple threads simultaneously, /// the actual writing will be serialized. /// </summary> /// <exception cref="IOException"/> public virtual void WriteMessage(Message message) { lock (_out) { _serializer.Serialize(message, _out); } }