PipeSession 类 |
命名空间: HslCommunication.Core.Net
PipeSession 类型公开以下成员。
名称 | 说明 | |
---|---|---|
PipeSession | 初始化 PipeSession 类的一个新实例 |
名称 | 说明 | |
---|---|---|
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 |
名称 | 说明 | |
---|---|---|
Close |
关闭当前的会话状态 Close the current session state | |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |