Beispiel #1
0
        /// <summary>
        /// 序列化数据
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="context"></param>
        public override void SerializeOwnedData(Serialization.SerializationWriter writer, object context)
        {
            base.SerializeOwnedData(writer, context);
            writer.WriteObject(ReturnValue);
            bool hasException = RemoteException != null;

            writer.Write(hasException);
            if (hasException)
            {
                writer.WriteOptimized(RemoteException.Message);
                writer.WriteOptimized(RemoteException.Source);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 序列化数据
 /// </summary>
 /// <param name="writer"></param>
 /// <param name="context"></param>
 public override void SerializeOwnedData(Serialization.SerializationWriter writer, object context)
 {
     base.SerializeOwnedData(writer, context);
     writer.Write(MessageData);
 }