C# Class Nettiers.AdventureWorks.Services.ConnectionScope

Inheritance: ConnectionScopeBase, IDisposable
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ConnectionScope ( ) : System

Private constructor.

Copy ( ConnectionScope scope ) : void

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

Method Details

Complete() public static méthode

Completes this transaction.
public static Complete ( ) : bool
Résultat bool

CreateTransaction() public static méthode

Creates a new transaction on the current ConnectionScope.
public static CreateTransaction ( ) : TransactionManager
Résultat TransactionManager

CreateTransaction() public static méthode

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.
Résultat TransactionManager

Dispose() public méthode

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

EnqueueOnThreadPool() public static méthode

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.
Résultat bool

EnqueueOnThreadPool() public static méthode

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.
Résultat bool

NewThread() public static méthode

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.
Résultat Thread

NewThread() public static méthode

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.
Résultat Thread

ValidateOrCreateTransaction() public static méthode

Validates an existing TransactionManager if one exists, otherwise creates a new TransactionManager to use.
public static ValidateOrCreateTransaction ( ) : TransactionManager
Résultat TransactionManager

ValidateOrCreateTransaction() public static méthode

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
Résultat TransactionManager