|
@@ -1,5 +1,6 @@
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
+using System.ComponentModel.Composition;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
@@ -11,6 +12,7 @@ namespace WeChatCore.Entity
|
|
|
/// <summary>
|
|
|
/// 消息实体
|
|
|
/// </summary>
|
|
|
+ [PartCreationPolicy(CreationPolicy.NonShared)]
|
|
|
public class MsgEntity
|
|
|
{
|
|
|
/// <summary>
|
|
@@ -57,10 +59,21 @@ namespace WeChatCore.Entity
|
|
|
/// 消息是否已读
|
|
|
/// </summary>
|
|
|
public bool HasRead { get; set; }
|
|
|
+ private FlowDocument _Document = new FlowDocument();
|
|
|
/// <summary>
|
|
|
/// 流文档显示
|
|
|
/// </summary>
|
|
|
- public FlowDocument Document { get; set; }
|
|
|
+ public FlowDocument Document
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return _Document;
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ _Document = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 是否设置自动回复
|
|
|
/// </summary>
|