C# Класс Shaml.Data.NHibernate.SimpleSessionStorage

Наследование: ISessionStorage
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetAllSessions() публичный Метод

Returns all the values of the internal dictionary of sessions.
public GetAllSessions ( ) : IEnumerable
Результат IEnumerable

GetSessionForKey() публичный Метод

Returns the session associated with the specified factoryKey or null if the specified factoryKey is not found.
public GetSessionForKey ( string factoryKey ) : ISession
factoryKey string
Результат ISession

SetSessionForKey() публичный Метод

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
Результат void

SimpleSessionStorage() публичный Метод

public SimpleSessionStorage ( ) : System.Collections.Generic
Результат System.Collections.Generic