|
@ -6,7 +6,12 @@ using System.Threading.Tasks; |
|
|
|
|
|
|
|
|
namespace X1.WebSocket.Models |
|
|
namespace X1.WebSocket.Models |
|
|
{ |
|
|
{ |
|
|
public class TransferProtocolLog |
|
|
/// <summary>
|
|
|
|
|
|
/// 消息传输协议日志模型
|
|
|
|
|
|
/// 用于在WebSocket传输层中传输协议日志数据
|
|
|
|
|
|
/// 与CoreAgent.ProtocolClient中的TransferProtocolLog区分开
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class MessageTransferProtocolLog |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 主键ID
|
|
|
/// 主键ID
|
|
@ -16,7 +21,7 @@ namespace X1.WebSocket.Models |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 协议层类型
|
|
|
/// 协议层类型
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public ProtocolLayer LayerType { get; set; } |
|
|
public string LayerType { get; set; } = string.Empty; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 消息详情集合(JSON格式存储)
|
|
|
/// 消息详情集合(JSON格式存储)
|
|
@ -89,5 +94,7 @@ namespace X1.WebSocket.Models |
|
|
get => TimeSpan.FromMilliseconds(TimeMs); |
|
|
get => TimeSpan.FromMilliseconds(TimeMs); |
|
|
set => TimeMs = (long)value.TotalMilliseconds; |
|
|
set => TimeMs = (long)value.TotalMilliseconds; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |