Метод | Описание | |
---|---|---|
DefaultSessionManager ( ISessionStore sessionStore, IKernel kernel, ISessionFactoryResolver factoryResolver ) : System |
Initializes a new instance of the DefaultSessionManager class.
|
|
OpenSession ( ) : ISession |
Returns a valid opened and connected ISession instance.
|
|
OpenSession ( String alias ) : ISession |
Returns a valid opened and connected ISession instance for the given connection alias.
|
|
OpenStatelessSession ( ) : IStatelessSession |
Returns a valid opened and connected IStatelessSession instance
|
|
OpenStatelessSession ( String alias ) : IStatelessSession |
Returns a valid opened and connected IStatelessSession instance for the given connection alias.
|
Метод | Описание | |
---|---|---|
EnlistIfNecessary ( bool weAreSessionOwner, Services.Transaction.ITransaction transaction, SessionDelegate session ) : bool |
Enlists if necessary.
|
|
EnlistIfNecessary ( bool weAreSessionOwner, Services.Transaction.ITransaction transaction, StatelessSessionDelegate session ) : bool |
Enlists if necessary.
|
Метод | Описание | |
---|---|---|
CreateSession ( String alias ) : ISession | ||
CreateStatelessSession ( String alias ) : IStatelessSession | ||
ObtainCurrentTransaction ( ) : Services.Transaction.ITransaction | ||
TranslateIsolationLevel ( IsolationMode mode ) : IsolationLevel | ||
WrapSession ( bool hasTransaction, ISession session ) : SessionDelegate | ||
WrapSession ( bool hasTransaction, IStatelessSession session ) : StatelessSessionDelegate |
public DefaultSessionManager ( ISessionStore sessionStore, IKernel kernel, ISessionFactoryResolver factoryResolver ) : System | ||
sessionStore | ISessionStore | The session store. |
kernel | IKernel | The kernel. |
factoryResolver | ISessionFactoryResolver | The factory resolver. |
Результат | System |
protected EnlistIfNecessary ( bool weAreSessionOwner, Services.Transaction.ITransaction transaction, SessionDelegate session ) : bool | ||
weAreSessionOwner | bool | if set to |
transaction | Services.Transaction.ITransaction | The transaction. |
session | SessionDelegate | The session. |
Результат | bool |
protected EnlistIfNecessary ( bool weAreSessionOwner, Services.Transaction.ITransaction transaction, StatelessSessionDelegate session ) : bool | ||
weAreSessionOwner | bool | if set to |
transaction | Services.Transaction.ITransaction | The transaction. |
session | StatelessSessionDelegate | The session. |
Результат | bool |
public OpenSession ( String alias ) : ISession | ||
alias | String | |
Результат | ISession |
public OpenStatelessSession ( ) : IStatelessSession | ||
Результат | IStatelessSession |
public OpenStatelessSession ( String alias ) : IStatelessSession | ||
alias | String | |
Результат | IStatelessSession |