C# Класс PetShop.Services.ConnectionScope

Наследование: ConnectionScopeBase, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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