C# Class Castle.Facilities.NHibernateIntegration.Internal.DefaultSessionManager

Inheritance: System.MarshalByRefObject, ISessionManager
Exibir arquivo Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
DefaultSessionManager ( ISessionStore sessionStore, IKernel kernel, ISessionFactoryResolver factoryResolver ) : System

Initializes a new instance of the DefaultSessionManager class.

OpenSession ( ) : ISession
OpenSession ( String alias ) : ISession

Protected Methods

Method Description
EnlistIfNecessary ( bool weAreSessionOwner, Castle.Services.Transaction.ITransaction transaction, SessionDelegate session ) : bool

Private Methods

Method Description
CreateSession ( String alias ) : ISession
ObtainCurrentTransaction ( ) : Castle.Services.Transaction.ITransaction
TranslateIsolationLevel ( IsolationMode mode ) : IsolationLevel
WrapSession ( bool hasTransaction, ISession session ) : SessionDelegate

Method Details

DefaultSessionManager() public method

Initializes a new instance of the DefaultSessionManager class.
public DefaultSessionManager ( ISessionStore sessionStore, IKernel kernel, ISessionFactoryResolver factoryResolver ) : System
sessionStore ISessionStore The session store.
kernel IKernel The kernel.
factoryResolver ISessionFactoryResolver The factory resolver.
return System

EnlistIfNecessary() protected method

protected EnlistIfNecessary ( bool weAreSessionOwner, Castle.Services.Transaction.ITransaction transaction, SessionDelegate session ) : bool
weAreSessionOwner bool
transaction Castle.Services.Transaction.ITransaction
session SessionDelegate
return bool

OpenSession() public method

public OpenSession ( ) : ISession
return ISession

OpenSession() public method

public OpenSession ( String alias ) : ISession
alias String
return ISession