Method | Description | |
---|---|---|
CachedUserSessionManager ( ICacheClient cacheClient ) : System | ||
GetOrCreateSession ( System.Guid userId, string userName, string shardId ) : |
Gets or create a user session if one doesn't exist.
|
|
GetUserClientSession ( System.Guid userId, System.Guid clientSessionId ) : |
Gets the user client session identified by the id if exists otherwise null.
|
|
GetUserSession ( System.Guid userId ) : |
Gets the user session if it exists or null.
|
|
RemoveClientSession ( System.Guid userId, ICollection |
Removes the client session.
|
|
StoreClientSession ( System.Guid userId, string userName, string shardId, string ipAddress, string base64ClientModulus, System.Guid userClientGlobalId ) : |
Adds a new client session. Should this be changed to GetOrCreateClientSession?
|
|
UpdateUserSession ( |
Updates the UserSession in the cache, or removes expired ones.
|
Method | Description | |
---|---|---|
LogIfDebug ( string fmt ) : void |
public CachedUserSessionManager ( ICacheClient cacheClient ) : System | ||
cacheClient | ICacheClient | |
return | System |
public GetOrCreateSession ( System.Guid userId, string userName, string shardId ) : |
||
userId | System.Guid | The user global id. |
userName | string | Title of the user. |
shardId | string | |
return |
public GetUserClientSession ( System.Guid userId, System.Guid clientSessionId ) : |
||
userId | System.Guid | The user global id. |
clientSessionId | System.Guid | The client session id. |
return |
public GetUserSession ( System.Guid userId ) : |
||
userId | System.Guid | The user global id. |
return |
public RemoveClientSession ( System.Guid userId, ICollection |
||
userId | System.Guid | The user global id. |
clientSessionIds | ICollection |
The client session ids. |
return | void |
public StoreClientSession ( System.Guid userId, string userName, string shardId, string ipAddress, string base64ClientModulus, System.Guid userClientGlobalId ) : |
||
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. |
return |
public UpdateUserSession ( |
||
userSession | The user session. | |
return | void |