C# 클래스 Shaml.Data.NHibernate.SimpleSessionStorage

상속: ISessionStorage
파일 보기 프로젝트 열기: sztupy/shaml 1 사용 예제들

공개 메소드들

메소드 설명
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