///<summary> Reads this HLAcontinueMessage from the specified stream.</summary>
        ///<param name="reader"> the input stream to read from</param>
        ///<returns> the object</returns>
        ///<exception cref="IOException"> if an error occurs</exception>
        public override object Deserialize(HlaEncodingReader reader, ref object msg2)
        {
            HLAcontinueMessage msg = new HLAcontinueMessage();

            msg.CopyTo((BaseInteractionMessage)msg2);
            return(msg);
        }
 public void OnReceiveHLAcontinue(HLAcontinueMessage msg)
 {
     message = msg;
     if (log.IsDebugEnabled) log.Debug("Received LastMessage =  " + msg.ToString());
 }
        public void TestHLAcontinueMessage()
        {
            HLAcontinueMessage msg = new HLAcontinueMessage();
            msg.UserSuppliedTag = System.Text.UnicodeEncoding.Unicode.GetBytes("Sample user data  1");

            myListener.LastMessage = null;
            helper.SendInteraction(msg);

            if (!(myListener.LastMessage is HLAcontinueMessage))
            {
                throw new Exception("Error reading HLAcontinueMessage");
            }
            else
            {
                HLAcontinueMessage msgLast = myListener.LastMessage as HLAcontinueMessage;

                Assert.AreEqual(msgLast.FederationExecutionHandle, msg.FederationExecutionHandle);
                Assert.AreEqual(msgLast.InteractionClassHandle, msg.InteractionClassHandle);
                Assert.AreEqual(msgLast.UserSuppliedTag, msg.UserSuppliedTag);
            }
        }
 ///<summary> Reads this HLAcontinueMessage from the specified stream.</summary>
 ///<param name="reader"> the input stream to read from</param>
 ///<returns> the object</returns>
 ///<exception cref="IOException"> if an error occurs</exception>
 public override object Deserialize(HlaEncodingReader reader, ref object msg2)
 {
     HLAcontinueMessage msg = new HLAcontinueMessage();
     msg.CopyTo((BaseInteractionMessage)msg2);
     return msg;
 }
Exemple #5
0
 public override void OnReceiveHLAcontinue(HLAcontinueMessage msg)
 {
     if (log.IsDebugEnabled)
         log.Debug("Received HLAcontinue =  " + msg.ToString());
 }