点击或拖拽改变大小

RedisSubscribe 属性

RedisSubscribe 类型公开以下成员。

属性
  名称说明
公共属性ConnectTimeOut
获取或设置当前连接超时时间,主要对 ConnectServer 方法有影响,默认值为 5000,也即是5秒。
Get or set the current connection timeout period, which mainly affects the ConnectServer method. The default value is 5000, which is 5 seconds.
公共属性代码示例LogNet
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出
The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG
(继承自 NetworkBase。)
公共属性Password
如果Redis服务器设置了密码,此处就需要进行设置。必须在 ConnectServer 方法调用前设置。
If the Redis server has set a password, it needs to be set here. Must be set before the ConnectServer method is called.
公共属性代码示例Token
网络类的身份令牌,在hsl协议的模式下会有效,在和设备进行通信的时候是无效的
Network-type identity tokens will be valid in the hsl protocol mode and will not be valid when communicating with the device
(继承自 NetworkBase。)
Top
参见