点击或拖拽改变大小

PipeSession 类

管道会话信息,包含了一个管道对象,管道可以是TCP,UDP,也可以是串口,甚至是其他自定义的。
Pipeline session information, which contains a pipeline object, which can be TCP, UDP, serial port, or even other custom interfaces.
继承层次
SystemObject
  HslCommunication.Core.NetPipeSession
    HslCommunication.EnthernetForwardSession
    HslCommunication.WebSocketWebSocketSession

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class PipeSession

PipeSession 类型公开以下成员。

构造函数
  名称说明
公共方法PipeSession
初始化 PipeSession 类的一个新实例
Top
属性
  名称说明
公共属性Communication
当前的会话的管道信息
Pipeline information for the current session
公共属性HeartTime
获取心跳验证的时间点
Get the time point of heartbeat verification
公共属性OnlineTime
获取当前的客户端的上线时间
Get the online time of the current client
公共属性SessionID
获取或设置当前会话的ID信息,某些特殊的会话需要用到该字段
Obtain or set the ID information of the current session, which is required for some special sessions
公共属性Tag
当前会话绑定的自定义的对象内容
The content of the custom object bound to the current session
Top
方法
  名称说明
公共方法Close
关闭当前的会话状态
Close the current session state
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (重写 ObjectToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见