C# 클래스 Summer.Batch.Common.Transaction.TransactionScopeManager

Utility class for managing transaction scopes.
파일 보기 프로젝트 열기: SummerBatch/SummerBatch

공개 메소드들

메소드 설명
CreateScope ( TransactionScopeOption scopeOption = TransactionScopeOption.Required, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted, System.TimeSpan timeout = null ) : TransactionScope

Creates a new transaction scope with the given options and registers the ITransactionSynchronization and IEnlistmentNotification with the current transaction.

RegisterResource ( IEnlistmentNotification resource ) : void

Registers a new IEnlistmentNotification.

RegisterTransactionSynchronization ( TransactionScope scope, ITransactionSynchronization synchronization ) : void

Registers a new ITransactionSynchronization to a scope.

UnregisterResource ( IEnlistmentNotification resource ) : void

Unregisters a new IEnlistmentNotification.

비공개 메소드들

메소드 설명
GetIsolationLevel ( IsolationLevel defaultIsolationLevel ) : IsolationLevel
GetTransactionCompleted ( TransactionScope scope ) : TransactionCompletedEventHandler
LogTransactionIfAborted ( TransactionEventArgs args ) : void

메소드 상세

CreateScope() 공개 정적인 메소드

Creates a new transaction scope with the given options and registers the ITransactionSynchronization and IEnlistmentNotification with the current transaction.
public static CreateScope ( TransactionScopeOption scopeOption = TransactionScopeOption.Required, IsolationLevel isolationLevel = IsolationLevel.ReadCommitted, System.TimeSpan timeout = null ) : TransactionScope
scopeOption TransactionScopeOption The scope options to use, by default.
isolationLevel IsolationLevel The isolation level, by default.
timeout System.TimeSpan The transaction timeout, by default.
리턴 System.Transactions.TransactionScope

RegisterResource() 공개 정적인 메소드

Registers a new IEnlistmentNotification.
public static RegisterResource ( IEnlistmentNotification resource ) : void
resource IEnlistmentNotification the resource to register
리턴 void

RegisterTransactionSynchronization() 공개 정적인 메소드

Registers a new ITransactionSynchronization to a scope.
public static RegisterTransactionSynchronization ( TransactionScope scope, ITransactionSynchronization synchronization ) : void
scope System.Transactions.TransactionScope the scope to register the synchronization to
synchronization ITransactionSynchronization the synchronization to register
리턴 void

UnregisterResource() 공개 정적인 메소드

Unregisters a new IEnlistmentNotification.
public static UnregisterResource ( IEnlistmentNotification resource ) : void
resource IEnlistmentNotification the resource to unregister
리턴 void