C# 클래스 Nexus.Transactions.TransactionScope

Manages the ambient transaction.
상속: IDisposable
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
Complete ( ) : void

Completes the transaction.

This method gets votes from all the participants on whether or not the transaction should be committed.

Dispose ( ) : void

Disposes of the transaction scope, and removes the ambient transaction.

This makes sure the transaction is rolled back if the scope hasn't completed.

TransactionScope ( ) : System

The default constructor.

This sets up the ambient transaction. This class allows the sharing of a transaction across multiple threads. However, it is expected that all threads created in the scope of the TransactionScope will have finished their work before Complete() is called. If a thread does work after Complete() has been called, expecting to enroll in the same transaction, the behaviour is undefined.

메소드 상세

Complete() 공개 메소드

Completes the transaction.
This method gets votes from all the participants on whether or not the transaction should be committed.
public Complete ( ) : void
리턴 void

Dispose() 공개 메소드

Disposes of the transaction scope, and removes the ambient transaction.
This makes sure the transaction is rolled back if the scope hasn't completed.
public Dispose ( ) : void
리턴 void

TransactionScope() 공개 메소드

The default constructor.
This sets up the ambient transaction. This class allows the sharing of a transaction across multiple threads. However, it is expected that all threads created in the scope of the TransactionScope will have finished their work before Complete() is called. If a thread does work after Complete() has been called, expecting to enroll in the same transaction, the behaviour is undefined.
public TransactionScope ( ) : System
리턴 System