C# Class ServiceStack.Redis.Tests.CachedUserSessionManager

Afficher le fichier Open project: ServiceStack/ServiceStack.Redis

Méthodes publiques

Méthode Description
CachedUserSessionManager ( ICacheClient cacheClient ) : System
GetOrCreateSession ( System.Guid userId, string userName, string shardId ) : UserSession

Gets or create a user session if one doesn't exist.

GetUserClientSession ( System.Guid userId, System.Guid clientSessionId ) : UserClientSession

Gets the user client session identified by the id if exists otherwise null.

GetUserSession ( System.Guid userId ) : UserSession

Gets the user session if it exists or null.

RemoveClientSession ( System.Guid userId, ICollection clientSessionIds ) : void

Removes the client session.

StoreClientSession ( System.Guid userId, string userName, string shardId, string ipAddress, string base64ClientModulus, System.Guid userClientGlobalId ) : UserClientSession

Adds a new client session. Should this be changed to GetOrCreateClientSession?

UpdateUserSession ( UserSession userSession ) : void

Updates the UserSession in the cache, or removes expired ones.

Private Methods

Méthode Description
LogIfDebug ( string fmt ) : void

Method Details

CachedUserSessionManager() public méthode

public CachedUserSessionManager ( ICacheClient cacheClient ) : System
cacheClient ICacheClient
Résultat System

GetOrCreateSession() public méthode

Gets or create a user session if one doesn't exist.
public GetOrCreateSession ( System.Guid userId, string userName, string shardId ) : UserSession
userId System.Guid The user global id.
userName string Title of the user.
shardId string
Résultat UserSession

GetUserClientSession() public méthode

Gets the user client session identified by the id if exists otherwise null.
public GetUserClientSession ( System.Guid userId, System.Guid clientSessionId ) : UserClientSession
userId System.Guid The user global id.
clientSessionId System.Guid The client session id.
Résultat UserClientSession

GetUserSession() public méthode

Gets the user session if it exists or null.
public GetUserSession ( System.Guid userId ) : UserSession
userId System.Guid The user global id.
Résultat UserSession

RemoveClientSession() public méthode

Removes the client session.
public RemoveClientSession ( System.Guid userId, ICollection clientSessionIds ) : void
userId System.Guid The user global id.
clientSessionIds ICollection The client session ids.
Résultat void

StoreClientSession() public méthode

Adds a new client session. Should this be changed to GetOrCreateClientSession?
public StoreClientSession ( System.Guid userId, string userName, string shardId, string ipAddress, string base64ClientModulus, System.Guid userClientGlobalId ) : UserClientSession
userId System.Guid The user global id.
userName string Title of the user.
shardId string
ipAddress string The ip address.
base64ClientModulus string The base64 client modulus.
userClientGlobalId System.Guid The user client global id.
Résultat UserClientSession

UpdateUserSession() public méthode

Updates the UserSession in the cache, or removes expired ones.
public UpdateUserSession ( UserSession userSession ) : void
userSession UserSession The user session.
Résultat void