Abstract base class for ISessionManager implementations. Contains session sweeping logic, CreateServerSession utility method and implements System.IDisposable pattern.
Declaring type: SessionManagerBase
Namespace: Zyan.Communication.SessionMgmt
Assembly: Zyan.Communication
Collapse/Expand Public Constructors
  Name Description
Public Method SessionManagerBase Overloaded. Initializes a SessionManagerBase instance with the default values for SessionAgeLimit and SessionSweepInterval.
Collapse/Expand Public Methods (see also: Protected Methods)
  Name Description
Public Method Virtual CreateServerSession Creates a new ServerSession with the given arguments.
Public Method Dispose Overloaded. Release allocated resources.
Public Method Abstract ExistSession Checks whether the given session exists.
Public Method Abstract GetSessionBySessionID Returns ServerSession identified by sessionID.
Public Method Abstract GetSessionVariable Returns the value of the session variable.
Public Method Abstract RemoveSession Removes the given session from the session list.
Public Method Virtual RenewSession Renews the given session.
Public Method SetCurrentSession Sets the current server session.
Public Method Abstract SetSessionVariable Sets the new value of the session variable.
Public Method Abstract StoreSession Stores the given ServerSession to the session list.
Public Method TerminateSession Removes the given session and raises the ClientSessionTerminated event.
Collapse/Expand Protected Methods
  Name Description
Protected Method Virtual Finalize Finalizer method.
Protected Method OnClientSessionTerminated Raises the ClientSessionTerminated event.
Protected Method StartSweepTimer Starts session sweeping timer.
Protected Method Virtual SweepExpiredSessions Removes all sessions older than SessionAgeLimit.
Collapse/Expand Public Properties (see also: Protected Properties)
  Name Description
Public Property SessionAgeLimit Gets or sets session age limit (minutes).
Public Property SessionSweepInterval Gets or sets session cleanup interval (minutes).
Collapse/Expand Protected Properties
  Name Description
Protected Property Virtual AllSessions Returns list of all sessions.
Protected Property Virtual ExpiredSessions Returns list of expired sessions.
Protected Property IsDisposed Returns true if the instance is disposed.
Collapse/Expand Public Events
  Name Description
Public Event ClientSessionTerminated Occurs when the client session is terminated abnormally.