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

Inheritance: System.MarshalByRefObject, ISessionManager
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
DefaultSessionManager ( ISessionStore sessionStore, IKernel kernel, ISessionFactoryResolver factoryResolver ) : System

Initializes a new instance of the DefaultSessionManager class.

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

Méthodes protégées

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

Private Methods

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

Method Details

DefaultSessionManager() public méthode

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.
Résultat System

EnlistIfNecessary() protected méthode

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

OpenSession() public méthode

public OpenSession ( ) : ISession
Résultat ISession

OpenSession() public méthode

public OpenSession ( String alias ) : ISession
alias String
Résultat ISession