Compartilhar via


GraphTransactionScope Class

Definition

Represents a highly optimized wrapper around System.Transactions.TransactionScope. This extensively uses thread local storage and is thus thread-bound. GraphTransactionScope is meant to be called from a using() class, same as TransactionScope.

public ref class GraphTransactionScope : IDisposable
public class GraphTransactionScope : IDisposable
type GraphTransactionScope = class
    interface IDisposable
Public Class GraphTransactionScope
Implements IDisposable
Inheritance
GraphTransactionScope
Derived
Implements

Constructors

GraphTransactionScope()

Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.

GraphTransactionScope(GraphTransactionScopeOptions)

Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.

GraphTransactionScope(String)

Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.

GraphTransactionScope(Transaction)

Constructor. This associates this GraphTransactionScope with ones on outer scope blocks by using a TLS variable.

Properties

ExtraData

Extra data to save in TLS

ScopeProperties

The property bag associated with this scope.

Methods

Complete()

Mark us as complete. Dispose will check this and if this wasn't called, the transaction will abort.

Dispose()

IDisposable.Dispose.

Dispose(Boolean)

Dispose implementation

Applies to