Method | Description | |
---|---|---|
AddSession ( System.Guid sessionGuid, |
添加会话
|
|
GetSessionsBySessionId ( string sessionId, |
根据sessionId获取session
|
|
GetSessionsCount ( ) : int |
获取Session个数
|
|
Instance ( ) : |
单实例模式
|
|
RemoveAllSession ( ) : void |
删除会话
|
|
RemoveSession ( System.Guid sessionGuid ) : |
删除会话
|
|
RemoveSessionBySessionId ( string sessionId ) : |
删除会话
|
Method | Description | |
---|---|---|
SessionManage ( ) : System |
构造函数
|
|
timeoutTimer_Elapsed ( object sender, System e ) : void |
定时清理过期会话
|
public AddSession ( System.Guid sessionGuid, |
||
sessionGuid | System.Guid | 会话GuidID |
smcSession | 会话数据 | |
return |
public GetSessionsBySessionId ( string sessionId, |
||
sessionId | string | sessionId |
sessions | session | |
return |
public RemoveSession ( System.Guid sessionGuid ) : |
||
sessionGuid | System.Guid | 会话Guid |
return |
public RemoveSessionBySessionId ( string sessionId ) : |
||
sessionId | string | |
return |