C# Class ClearCanvas.Web.Enterprise.Authentication.SessionCache

Internal session cache. Used to force logout of the sessions upon expiration.
Inheritance: IDisposable
显示文件 Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
AddSession ( string id, ClearCanvas.Web.Enterprise.Authentication.SessionInfo session ) : void
Dispose ( ) : void
Find ( string id ) : ClearCanvas.Web.Enterprise.Authentication.SessionInfo
RemoveSession ( string id ) : void
Renew ( string tokenId, System.DateTime time ) : SessionToken

Private Methods

Method Description
CleanupSession ( ClearCanvas.Web.Enterprise.Authentication.SessionInfo session ) : void
OnSessionRemoved ( ClearCanvas.Web.Enterprise.Authentication.SessionInfo session ) : void
OnTimer ( object state ) : void
SessionCache ( ) : System

Method Details

AddSession() public method

public AddSession ( string id, ClearCanvas.Web.Enterprise.Authentication.SessionInfo session ) : void
id string
session ClearCanvas.Web.Enterprise.Authentication.SessionInfo
return void

Dispose() public method

public Dispose ( ) : void
return void

Find() public method

public Find ( string id ) : ClearCanvas.Web.Enterprise.Authentication.SessionInfo
id string
return ClearCanvas.Web.Enterprise.Authentication.SessionInfo

RemoveSession() public method

public RemoveSession ( string id ) : void
id string
return void

Renew() public method

public Renew ( string tokenId, System.DateTime time ) : SessionToken
tokenId string
time System.DateTime
return SessionToken