コード例 #1
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Success     = deserializer.ReadBoolean();
     ResultText  = deserializer.ReadStringUTF8();
     WebServices = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo());
 }
コード例 #2
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
     Removed = deserializer.ReadBoolean();
     ResultMessage = deserializer.ReadStringUTF8();
 }
コード例 #3
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Success = deserializer.ReadBoolean();
     ResultText = deserializer.ReadStringUTF8();
     WebServices = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo());
 }
コード例 #4
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
     Removed         = deserializer.ReadBoolean();
     ResultMessage   = deserializer.ReadStringUTF8();
 }
コード例 #5
0
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Name      = deserializer.ReadStringUTF8();
     IpAddress = deserializer.ReadStringUTF8();
     Port      = deserializer.ReadInt32();
     Adjacents = deserializer.ReadStringUTF8();
     Location  = deserializer.ReadStringUTF8();
 }
コード例 #6
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     CommunicatorType = (CommunicatorTypes) deserializer.ReadByte();
     CommunicationWay = (CommunicationWays) deserializer.ReadByte();
     Name = deserializer.ReadStringUTF8();
     Password = deserializer.ReadStringUTF8();
 }
コード例 #7
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     CommunicatorType = (CommunicatorTypes)deserializer.ReadByte();
     CommunicationWay = (CommunicationWays)deserializer.ReadByte();
     Name             = deserializer.ReadStringUTF8();
     Password         = deserializer.ReadStringUTF8();
 }
コード例 #8
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     SourceServerName           = deserializer.ReadStringUTF8();
     SourceApplicationName      = deserializer.ReadStringUTF8();
     SourceCommunicatorId       = deserializer.ReadInt64();
     DestinationServerName      = deserializer.ReadStringUTF8();
     DestinationApplicationName = deserializer.ReadStringUTF8();
     DestinationCommunicatorId  = deserializer.ReadInt64();
     PassedServers = deserializer.ReadObjectArray(() => new ServerTransmitReport());
     MessageData   = deserializer.ReadByteArray();
     TransmitRule  = (MessageTransmitRules)deserializer.ReadByte();
 }
コード例 #9
0
        /// <summary>
        /// Reads and constructs a MDSMessage according to the protocol rules.
        /// </summary>
        /// <param name="deserializer">Deserializer to read message</param>
        /// <returns>MDSMessage object that is read</returns>
        public MDSMessage ReadMessage(IMDSDeserializer deserializer)
        {
            //Read protocol type
            var protocolType = deserializer.ReadUInt32();
            if (protocolType != MDSDefaultProtocolType)
            {
                throw new MDSException("Wrong protocol type: " + protocolType + ".");
            }

            //Read message type
            var messageTypeId = deserializer.ReadInt32();

            //Read and return message
            return deserializer.ReadObject(() => MDSMessageFactory.CreateMessageByTypeId(messageTypeId));
        }
コード例 #10
0
        /// <summary>
        /// Reads and constructs a MDSMessage according to the protocol rules.
        /// </summary>
        /// <param name="deserializer">Deserializer to read message</param>
        /// <returns>MDSMessage object that is read</returns>
        public MDSMessage ReadMessage(IMDSDeserializer deserializer)
        {
            //Read protocol type
            var protocolType = deserializer.ReadUInt32();

            if (protocolType != MDSDefaultProtocolType)
            {
                throw new MDSException("Wrong protocol type: " + protocolType + ".");
            }

            //Read message type
            var messageTypeId = deserializer.ReadInt32();

            //Read and return message
            return(deserializer.ReadObject(() => MDSMessageFactory.CreateMessageByTypeId(messageTypeId)));
        }
コード例 #11
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Name = deserializer.ReadStringUTF8();
     CommunicatorCount = deserializer.ReadInt32();
 }
コード例 #12
0
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ControllerMessageTypeId = deserializer.ReadInt32();
     MessageData             = deserializer.ReadByteArray();
 }
コード例 #13
0
ファイル: ServerGraphInfo.cs プロジェクト: yonglehou/dotnetmq
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     ThisServerName = deserializer.ReadStringUTF8();
     Servers = deserializer.ReadObjectArray(() => new ServerOnGraph());
 }
コード例 #14
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
 }
コード例 #15
0
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     ServerName   = deserializer.ReadStringUTF8();
     ArrivingTime = deserializer.ReadDateTime();
     LeavingTime  = deserializer.ReadDateTime();
 }
コード例 #16
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ServerGraph = deserializer.ReadObject(() => new ServerGraphInfo());
 }
コード例 #17
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public virtual void Deserialize(IMDSDeserializer deserializer)
 {
     MessageId        = deserializer.ReadStringUTF8();
     RepliedMessageId = deserializer.ReadStringUTF8();
 }
コード例 #18
0
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ControllerMessageTypeId = deserializer.ReadInt32();
     MessageData = deserializer.ReadByteArray();
 }
コード例 #19
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
     WebServices     = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo());
 }
コード例 #20
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Result  = deserializer.ReadObject(() => new MDSOperationResultMessage());
     Message = deserializer.ReadObject(() => new MDSDataTransferMessage());
 }
コード例 #21
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Url = deserializer.ReadStringUTF8();
 }
コード例 #22
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public virtual void Deserialize(IMDSDeserializer deserializer)
 {
     //No data to deserialize
 }
コード例 #23
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     SourceServerName = deserializer.ReadStringUTF8();
     SourceApplicationName = deserializer.ReadStringUTF8();
     SourceCommunicatorId = deserializer.ReadInt64();
     DestinationServerName = deserializer.ReadStringUTF8();
     DestinationApplicationName = deserializer.ReadStringUTF8();
     DestinationCommunicatorId = deserializer.ReadInt64();
     PassedServers = deserializer.ReadObjectArray(() => new ServerTransmitReport());
     MessageData = deserializer.ReadByteArray();
     TransmitRule = (MessageTransmitRules) deserializer.ReadByte();
 }
コード例 #24
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Name = deserializer.ReadStringUTF8();
     CommunicatorCount = deserializer.ReadInt32();
 }
コード例 #25
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Success = deserializer.ReadBoolean();
     ResultMessage = deserializer.ReadStringUTF8();
 }
コード例 #26
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Url = deserializer.ReadStringUTF8();
 }
コード例 #27
0
ファイル: ControlMessage.cs プロジェクト: yonglehou/dotnetmq
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public virtual void Deserialize(IMDSDeserializer deserializer)
 {
     //No data to deserialize
 }
コード例 #28
0
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     ServerName = deserializer.ReadStringUTF8();
     ArrivingTime = deserializer.ReadDateTime();
     LeavingTime = deserializer.ReadDateTime();
 }
コード例 #29
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     NewCommunicationWay = (CommunicationWays)deserializer.ReadByte();
 }
コード例 #30
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
 }
コード例 #31
0
ファイル: ServerGraphInfo.cs プロジェクト: yonglehou/dotnetmq
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Name = deserializer.ReadStringUTF8();
     IpAddress = deserializer.ReadStringUTF8();
     Port = deserializer.ReadInt32();
     Adjacents = deserializer.ReadStringUTF8();
     Location = deserializer.ReadStringUTF8();
 }
コード例 #32
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ClientApplications = deserializer.ReadObjectArray(() => new ClientApplicationInfo());
 }
コード例 #33
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ServerGraph = deserializer.ReadObject(() => new ServerGraphInfo());
 }
コード例 #34
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Name = deserializer.ReadStringUTF8();
     CommunicatorCount = deserializer.ReadInt32();
 }
コード例 #35
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Success       = deserializer.ReadBoolean();
     ResultMessage = deserializer.ReadStringUTF8();
 }
コード例 #36
0
ファイル: MDSMessage.cs プロジェクト: yonglehou/dotnetmq
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public virtual void Deserialize(IMDSDeserializer deserializer)
 {
     MessageId = deserializer.ReadStringUTF8();
     RepliedMessageId = deserializer.ReadStringUTF8();
 }
コード例 #37
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     Name = deserializer.ReadStringUTF8();
     CommunicatorCount = deserializer.ReadInt32();
     MessageCount      = deserializer.ReadInt32();
 }
コード例 #38
0
 /// <summary>
 /// Deserializes this object.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public void Deserialize(IMDSDeserializer deserializer)
 {
     ThisServerName = deserializer.ReadStringUTF8();
     Servers        = deserializer.ReadObjectArray(() => new ServerOnGraph());
 }
コード例 #39
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ClientApplications = deserializer.ReadObjectArray(() => new ClientApplicationInfo());
 }
コード例 #40
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     Result = deserializer.ReadObject(() => new MDSOperationResultMessage());
     Message = deserializer.ReadObject(() => new MDSDataTransferMessage());
 }
コード例 #41
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     NewCommunicationWay = (CommunicationWays) deserializer.ReadByte();
 }
コード例 #42
0
 /// <summary>
 /// Deserializes this message.
 /// </summary>
 /// <param name="deserializer">Deserializer used to deserialize objects</param>
 public override void Deserialize(IMDSDeserializer deserializer)
 {
     base.Deserialize(deserializer);
     ApplicationName = deserializer.ReadStringUTF8();
     WebServices = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo());
 }