C# Class ScrewTurn.Wiki.SessionCache

Implements a session data cache whose lifetime is only limited to one request.
Afficher le fichier Open project: mono/ScrewTurnWiki

Méthodes publiques

Méthode Description
ClearData ( string sessionId ) : void

Clears all cached data of a session.

GetCurrentGroups ( string sessionId ) : UserGroup[]

Gets the current groups, if any, of a session.

GetCurrentUser ( string sessionId ) : UserInfo

Gets the current user, if any, of a session.

SetCurrentGroups ( string sessionId, UserGroup groups ) : void

Sets the current groups of a session.

SetCurrentUser ( string sessionId, UserInfo user ) : void

Sets the current user of a session.

Method Details

ClearData() public static méthode

Clears all cached data of a session.
public static ClearData ( string sessionId ) : void
sessionId string The session ID.
Résultat void

GetCurrentGroups() public static méthode

Gets the current groups, if any, of a session.
public static GetCurrentGroups ( string sessionId ) : UserGroup[]
sessionId string The session ID.
Résultat UserGroup[]

GetCurrentUser() public static méthode

Gets the current user, if any, of a session.
public static GetCurrentUser ( string sessionId ) : UserInfo
sessionId string The session ID.
Résultat UserInfo

SetCurrentGroups() public static méthode

Sets the current groups of a session.
public static SetCurrentGroups ( string sessionId, UserGroup groups ) : void
sessionId string The session ID.
groups UserGroup The groups.
Résultat void

SetCurrentUser() public static méthode

Sets the current user of a session.
public static SetCurrentUser ( string sessionId, UserInfo user ) : void
sessionId string The session ID.
user UserInfo The user.
Résultat void