C# 클래스 Castle.Facilities.NHibernate.SessionManager

The session manager is an object wrapper around the "real" manager which is managed by a custom per-transaction lifestyle. If you wish to implement your own manager, you can pass a function to this object at construction time and replace the built-in session manager.
상속: ISessionManager
파일 보기 프로젝트 열기: haf/Castle.Facilities.NHibernate

공개 메소드들

메소드 설명
SessionManager ( Func getSession, ITransactionManager transactionManager ) : System

Constructor.

비공개 메소드들

메소드 설명
ClearStoredSession ( ) : void

Removes the session stored in the callcontext

GetStoredSession ( ) : ISession

Retrieves the session stored in the callcontext

ISessionManager ( ) : ISession
Inner_TransactionCompleted ( object sender, System e ) : void

Clear the CallContext when the transaction ends

ObtainCurrentTransaction ( ) : Maybe

Gets the current transaction from de AutoTx facility via an ITransactionManager

StoreSession ( ISession session ) : void

Stores a session in the CallContext

메소드 상세

SessionManager() 공개 메소드

Constructor.
public SessionManager ( Func getSession, ITransactionManager transactionManager ) : System
getSession Func
transactionManager ITransactionManager
리턴 System