C# 클래스 PetShop.Services.ConnectionScope

상속: ConnectionScopeBase, IDisposable
파일 보기 프로젝트 열기: netTiers/netTiers 1 사용 예제들

공개 메소드들

메소드 설명
Complete ( ) : bool

Completes this transaction.

CreateTransaction ( ) : TransactionManager

Creates a new transaction on the current ConnectionScope.

CreateTransaction ( IsolationLevel level ) : TransactionManager

Creates a new transaction on the current ConnectionScope with the specified System.Data.IsolationLevel.

Dispose ( ) : void

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

EnqueueOnThreadPool ( ParameterizedThreadStart start, object state ) : bool

Queues a method for execution. The method executes when a thread pool thread becomes available.

EnqueueOnThreadPool ( ThreadStart start ) : bool

Queues a method for execution. The method executes when a thread pool thread becomes available.

NewThread ( ParameterizedThreadStart start ) : Thread

Creates a new Thread object and copies the current ConnectionScope parameters.

NewThread ( ThreadStart start ) : Thread

Creates a new Thread object and copies the current ConnectionScope parameters.

ValidateOrCreateTransaction ( ) : TransactionManager

Validates an existing TransactionManager if one exists, otherwise creates a new TransactionManager to use.

ValidateOrCreateTransaction ( bool createTransaction ) : TransactionManager

Validates an existing TransactionManager if one exists, otherwise creates a new TransactionManager to use.

비공개 메소드들

메소드 설명
ConnectionScope ( ) : System

Private constructor.

Copy ( ConnectionScope scope ) : void

Copies the values from the specified scope object to the ConnectionScope used by the current thread.

메소드 상세

Complete() 공개 정적인 메소드

Completes this transaction.
public static Complete ( ) : bool
리턴 bool

CreateTransaction() 공개 정적인 메소드

Creates a new transaction on the current ConnectionScope.
public static CreateTransaction ( ) : TransactionManager
리턴 PetShop.Data.TransactionManager

CreateTransaction() 공개 정적인 메소드

Creates a new transaction on the current ConnectionScope with the specified System.Data.IsolationLevel.
public static CreateTransaction ( IsolationLevel level ) : TransactionManager
level IsolationLevel Determines which to use for the transaction.
리턴 PetShop.Data.TransactionManager

Dispose() 공개 메소드

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

EnqueueOnThreadPool() 공개 정적인 메소드

Queues a method for execution. The method executes when a thread pool thread becomes available.
public static EnqueueOnThreadPool ( ParameterizedThreadStart start, object state ) : bool
start ParameterizedThreadStart A delegate specifying which method to run /// when the is started.
state object An object containing data to be used by the method.
리턴 bool

EnqueueOnThreadPool() 공개 정적인 메소드

Queues a method for execution. The method executes when a thread pool thread becomes available.
public static EnqueueOnThreadPool ( ThreadStart start ) : bool
start ThreadStart A delegate specifying which method to run /// when the is started.
리턴 bool

NewThread() 공개 정적인 메소드

Creates a new Thread object and copies the current ConnectionScope parameters.
public static NewThread ( ParameterizedThreadStart start ) : Thread
start ParameterizedThreadStart A delegate specifying which method to run /// when the is started.
리턴 Thread

NewThread() 공개 정적인 메소드

Creates a new Thread object and copies the current ConnectionScope parameters.
public static NewThread ( ThreadStart start ) : Thread
start ThreadStart A delegate specifying which method to run /// when the is started.
리턴 Thread

ValidateOrCreateTransaction() 공개 정적인 메소드

Validates an existing TransactionManager if one exists, otherwise creates a new TransactionManager to use.
public static ValidateOrCreateTransaction ( ) : TransactionManager
리턴 PetShop.Data.TransactionManager

ValidateOrCreateTransaction() 공개 정적인 메소드

Validates an existing TransactionManager if one exists, otherwise creates a new TransactionManager to use.
public static ValidateOrCreateTransaction ( bool createTransaction ) : TransactionManager
createTransaction bool determines whether to create a new transaction
리턴 PetShop.Data.TransactionManager