C# 클래스 NLight.Transactions.TransactionContext

Represents a transaction context.
상속: IDisposable
파일 보기 프로젝트 열기: slorion/nlight 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Enter void
OnStateChanged void
Parent_TransactionContextStateChanged void
VoteCommitFromChild void
VoteRollbackFromChild void

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Exit ( ) : void

Exits the transaction context. Its commit or rollback status becomes final.

GetController ( ) : TransactionContext

Gets the controlling transaction context.

TransactionContext ( TransactionContextAffinity affinity ) : System

Initializes a new instance of the TransactionContext class.

VoteCommit ( ) : void

Votes commit for the currently executing operation. A rollback must not have been voted before.

VoteRollback ( ) : void

Votes rollback for the currently executing operation.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases resources.

비공개 메소드들

메소드 설명
Enter ( ) : void

Enters the transaction context. It will become the new current transaction context.

OnStateChanged ( TransactionContextState previousState, TransactionContextState newState ) : void

Raises the StateChanged event.

Parent_TransactionContextStateChanged ( object sender, TransactionContextStateChangedEventArgs e ) : void

Handles the parent transaction context's StateChanged event.

VoteCommitFromChild ( ) : void

Casts the commit vote on parent from a child.

VoteRollbackFromChild ( ) : void

Casts the rollback vote on parent from a child.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases resources.
protected Dispose ( bool disposing ) : void
disposing bool true if this instance is disposed manually; false if it is disposed during finalization.
리턴 void

Exit() 공개 메소드

Exits the transaction context. Its commit or rollback status becomes final.
/// The requested transaction context state change is invalid. ///
public Exit ( ) : void
리턴 void

GetController() 공개 메소드

Gets the controlling transaction context.
public GetController ( ) : TransactionContext
리턴 TransactionContext

TransactionContext() 공개 메소드

Initializes a new instance of the TransactionContext class.
public TransactionContext ( TransactionContextAffinity affinity ) : System
affinity TransactionContextAffinity The transaction context affinity.
리턴 System

VoteCommit() 공개 메소드

Votes commit for the currently executing operation. A rollback must not have been voted before.
/// The requested transaction context state change is invalid. ///
public VoteCommit ( ) : void
리턴 void

VoteRollback() 공개 메소드

Votes rollback for the currently executing operation.
/// The requested transaction context state change is invalid. ///
public VoteRollback ( ) : void
리턴 void