コード例 #1
0
 /// <summary>
 /// Serializes this object.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(IMDSSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteStringUTF8(IpAddress);
     serializer.WriteInt32(Port);
     serializer.WriteStringUTF8(Adjacents);
     serializer.WriteStringUTF8(Location);
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(IMDSSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
コード例 #5
0
 /// <summary>
 /// Serializes this message.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(IMDSSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
     serializer.WriteInt32(MessageCount);
 }
コード例 #6
0
ファイル: ServerGraphInfo.cs プロジェクト: yonglehou/dotnetmq
 /// <summary>
 /// Serializes this object.
 /// </summary>
 /// <param name="serializer">Serializer used to serialize objects</param>
 public void Serialize(IMDSSerializer serializer)
 {
     serializer.WriteStringUTF8(Name);
     serializer.WriteStringUTF8(IpAddress);
     serializer.WriteInt32(Port);
     serializer.WriteStringUTF8(Adjacents);
     serializer.WriteStringUTF8(Location);
 }
コード例 #7
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.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }
コード例 #8
0
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteInt32(ControllerMessageTypeId);
     serializer.WriteByteArray(MessageData);
 }
コード例 #9
0
 public override void Serialize(IMDSSerializer serializer)
 {
     base.Serialize(serializer);
     serializer.WriteInt32(ControllerMessageTypeId);
     serializer.WriteByteArray(MessageData);
 }
コード例 #10
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.WriteStringUTF8(Name);
     serializer.WriteInt32(CommunicatorCount);
 }