示例#1
0
        /// <summary>
        /// Factory for deserialization.
        /// </summary>
        internal static INodePacket FactoryForDeserialization(ITranslator translator)
        {
            TaskHostTaskCancelled taskCancelled = new TaskHostTaskCancelled();

            taskCancelled.Translate(translator);
            return(taskCancelled);
        }
        public void TestTranslation()
        {
            TaskHostTaskCancelled cancelled = new TaskHostTaskCancelled();

            ((INodePacketTranslatable)cancelled).Translate(TranslationHelpers.GetWriteTranslator());
            INodePacket packet = TaskHostTaskCancelled.FactoryForDeserialization(TranslationHelpers.GetReadTranslator());

            TaskHostTaskCancelled deserializedCancelled = packet as TaskHostTaskCancelled;
        }
 /// <summary>
 /// Factory for deserialization.
 /// </summary>
 internal static INodePacket FactoryForDeserialization(INodePacketTranslator translator)
 {
     TaskHostTaskCancelled taskCancelled = new TaskHostTaskCancelled();
     taskCancelled.Translate(translator);
     return taskCancelled;
 }
 public void TestConstructor()
 {
     TaskHostTaskCancelled cancelled = new TaskHostTaskCancelled();
 }