C# Class Shaml.Data.NHibernate.SimpleSessionStorage

Inheritance: ISessionStorage
Mostra file Open project: sztupy/shaml Class Usage Examples

Public Methods

Method 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 method

Returns all the values of the internal dictionary of sessions.
public GetAllSessions ( ) : IEnumerable
return IEnumerable

GetSessionForKey() public method

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

SetSessionForKey() public method

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
return void

SimpleSessionStorage() public method

public SimpleSessionStorage ( ) : System.Collections.Generic
return System.Collections.Generic