메소드 | 설명 | |
---|---|---|
Dispose ( ) : void | ||
FailScope ( ) : void |
This is called when a session has a failure
|
|
Flush ( ) : void | ||
GetSession ( object key ) : ISession | ||
IsKeyKnown ( object key ) : bool |
This method is invoked when the ISessionFactoryHolder instance needs a session instance. Instead of creating one it interrogates the active scope for one. The scope implementation must check if it has a session registered for the given key. RegisterSession
|
|
RegisterSession ( object key, ISession session ) : void | ||
TransactionScope ( TransactionMode mode = TransactionMode.New, IsolationLevel isolation = IsolationLevel.Unspecified, OnDispose ondispose = OnDispose.Commit, ISessionScope parent = null, ISessionFactoryHolder holder = null, IThreadScopeInfo scopeinfo = null ) : System |
Initializes a new instance of the TransactionScope class.
|
|
VoteCommit ( ) : void |
Votes to commit the transaction
|
|
VoteRollBack ( ) : void |
Votes to roll back the transaction
|
메소드 | 설명 | |
---|---|---|
RaiseOnCompleted ( ) : void |
Raises the on completed event
|
public RegisterSession ( object key, ISession session ) : void | ||
key | object | |
session | ISession | |
리턴 | void |
public TransactionScope ( TransactionMode mode = TransactionMode.New, IsolationLevel isolation = IsolationLevel.Unspecified, OnDispose ondispose = OnDispose.Commit, ISessionScope parent = null, ISessionFactoryHolder holder = null, IThreadScopeInfo scopeinfo = null ) : System | ||
mode | TransactionMode | |
isolation | IsolationLevel | |
ondispose | OnDispose | |
parent | ISessionScope | |
holder | ISessionFactoryHolder | |
scopeinfo | IThreadScopeInfo | |
리턴 | System |