Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
LogIfDebug ( string fmt ) : void |
public CachedUserSessionManager ( ICacheClient cacheClient ) : System | ||
cacheClient | ICacheClient | |
Результат | 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 | |
Результат |
public GetUserClientSession ( System.Guid userId, System.Guid clientSessionId ) : |
||
userId | System.Guid | The user global id. |
clientSessionId | System.Guid | The client session id. |
Результат |
public GetUserSession ( System.Guid userId ) : |
||
userId | System.Guid | The user global id. |
Результат |
public RemoveClientSession ( System.Guid userId, ICollection |
||
userId | System.Guid | The user global id. |
clientSessionIds | ICollection |
The client session ids. |
Результат | 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. |
Результат |
public UpdateUserSession ( |
||
userSession | The user session. | |
Результат | void |