Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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. |
return | 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. |
return | 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. |
return | bool |
public OpenSession ( String alias ) : ISession | ||
alias | String | |
return | ISession |
public OpenStatelessSession ( ) : IStatelessSession | ||
return | IStatelessSession |
public OpenStatelessSession ( String alias ) : IStatelessSession | ||
alias | String | |
return | IStatelessSession |