/// <summary>
        /// Serializes and writes a MDSMessage according to the protocol rules.
        /// </summary>
        /// <param name="serializer">Serializer to serialize message</param>
        /// <param name="message">Message to be serialized</param>
        public void WriteMessage(IMDSSerializer serializer, MDSMessage message)
        {
            //Write protocol type
            serializer.WriteUInt32(MDSDefaultProtocolType);

            //Write the message type
            serializer.WriteInt32(message.MessageTypeId);

            //Write message
            serializer.WriteObject(message);
        }
 /// <summary>
 /// Serializes and writes a MDSMessage according to the protocol rules.
 /// </summary>
 /// <param name="serializer">Serializer to serialize message</param>
 /// <param name="message">Message to be serialized</param>
 public void WriteMessage(IMDSSerializer serializer, MDSMessage message)
 {
     //Write protocol type
     serializer.WriteUInt32(MDSDefaultProtocolType);
     
     //Write the message type
     serializer.WriteInt32(message.MessageTypeId);
     
     //Write message
     serializer.WriteObject(message);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteObject(ServerGraph);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteObject(ServerGraph);
 }
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteObject(Result);
     serializer.WriteObject(Message);
 }
示例#6
0
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteObject(Result);
     serializer.WriteObject(Message);
 }