C# Class Shaml.Data.NHibernate.SimpleSessionStorage

Inheritance: ISessionStorage
Afficher le fichier Open project: sztupy/shaml Class Usage Examples

Méthodes publiques

Méthode Description
GetAllSessions ( ) : IEnumerable

Returns all the values of the internal dictionary of sessions.

GetSessionForKey ( string factoryKey ) : ISession

Returns the session associated with the specified factoryKey or null if the specified factoryKey is not found.

SetSessionForKey ( string factoryKey, ISession session ) : void

Stores the session into a dictionary using the specified factoryKey. If a session already exists by the specified factoryKey, it gets overwritten by the new session passed in.

SimpleSessionStorage ( ) : System.Collections.Generic

Method Details

GetAllSessions() public méthode

Returns all the values of the internal dictionary of sessions.
public GetAllSessions ( ) : IEnumerable
Résultat IEnumerable

GetSessionForKey() public méthode

Returns the session associated with the specified factoryKey or null if the specified factoryKey is not found.
public GetSessionForKey ( string factoryKey ) : ISession
factoryKey string
Résultat ISession

SetSessionForKey() public méthode

Stores the session into a dictionary using the specified factoryKey. If a session already exists by the specified factoryKey, it gets overwritten by the new session passed in.
public SetSessionForKey ( string factoryKey, ISession session ) : void
factoryKey string
session ISession
Résultat void

SimpleSessionStorage() public méthode

public SimpleSessionStorage ( ) : System.Collections.Generic
Résultat System.Collections.Generic