/// <summary> /// 设置消息数据 /// </summary> /// <param name="model">消息model</param> public void SetData(object model) { this.Data = SerializerUtils.Serialize(model); }
/// <summary> /// 序列化消息 /// </summary> /// <returns></returns> public byte[] Serialize() { return(SerializerUtils.Serialize(this)); }