Beispiel #1
0
        internal void WriteTo(MessageStore store)
        {
            using (MemoryStream mS = new MemoryStream(128))
            {
                WriteTo(new BinaryWriter(mS));
                mS.Position = 0;

                if (_messageNumber == -1)
                {
                    _messageNumber = store.WriteMessage(mS);
                }
                else
                {
                    store.UpdateMessage(_messageNumber, mS);
                }
            }
        }