SessionIdleCheckerComponent 类
负责检查会话空闲超时的组件。
继承成员
命名空间: Fantasy.Network
程序集: Fantasy.Net.dll
语法
public class SessionIdleCheckerComponent : Entity, IEntity, IDisposable, IPool
字段
| 编辑本文 查看源代码TimerComponent
声明
public TimerComponent TimerComponent
字段值
类型 | 描述 |
---|---|
TimerComponent |
方法
| 编辑本文 查看源代码Dispose()
重写 Dispose 方法以释放资源。
声明
public override void Dispose()
重写
| 编辑本文 查看源代码Start(int, int)
使用指定的间隔和空闲超时时间启动空闲检查功能。
声明
public void Start(int interval, int timeOut)
参数
类型 | 名称 | 描述 |
---|---|---|
int | interval | 以毫秒为单位的检查间隔。 |
int | timeOut | 以毫秒为单位的空闲超时时间。 |
Stop()
停止空闲检查功能。
声明
public void Stop()