3 types derived from Transaction
System.Transactions.Local (3)
System\Transactions\CommittableTransaction.cs (1)
13public sealed class CommittableTransaction : Transaction, IAsyncResult
System\Transactions\DependentTransaction.cs (1)
8public sealed class DependentTransaction : Transaction
System\Transactions\SubordinateTransaction.cs (1)
6public sealed class SubordinateTransaction : Transaction
2 instantiations of Transaction
System.Transactions.Local (2)
System\Transactions\Transaction.cs (1)
716Transaction clone = new Transaction(_isoLevel, _internalTransaction);
System\Transactions\TransactionManager.cs (1)
595tx = new Transaction(dtx);
130 references to Transaction
netstandard (1)
netstandard.cs (1)
2182[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Transactions.Transaction))]
System.Data.Common (3)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
497internal static void SetCurrentTransaction(Transaction transaction) 499Transaction.Current = transaction;
System\Data\Common\DbConnection.cs (1)
143public virtual void EnlistTransaction(System.Transactions.Transaction? transaction)
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (2)
497internal static void SetCurrentTransaction(Transaction transaction) 499Transaction.Current = transaction;
System\Data\Odbc\OdbcConnection.cs (1)
575EnlistTransaction(SysTx.Transaction.Current);
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
117public override void EnlistTransaction(System.Transactions.Transaction? transaction) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
System.Transactions (1)
System.Transactions.cs (1)
23[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Transactions.Transaction))]
System.Transactions.Local (121)
System\Transactions\CommittableTransaction.cs (2)
128if (Interlocked.Exchange(ref _disposed, Transaction._disposedTrueValue) == Transaction._disposedTrueValue)
System\Transactions\Enlistment.cs (11)
60private readonly Transaction? _atomicTransaction; 101protected InternalEnlistment(Enlistment enlistment, InternalTransaction transaction, Transaction atomicTransaction) 116Transaction atomicTransaction) 131Transaction atomicTransaction) 313Transaction atomicTransaction) : 354Transaction atomicTransaction) : 373Transaction atomicTransaction) 417Transaction atomicTransaction) 433Transaction atomicTransaction, 462Transaction atomicTransaction) 475Transaction atomicTransaction)
System\Transactions\EnterpriseServices.cs (1)
18internal static Transaction? GetContextTransaction()
System\Transactions\InternalTransaction.cs (3)
163internal readonly Transaction _outcomeSource; 252internal InternalTransaction(Transaction outcomeSource, OletxTransaction distributedTx) 272internal InternalTransaction(Transaction outcomeSource, ITransactionPromoter promoter)
System\Transactions\NonWindowsUnsupported.cs (2)
37internal static Transaction GetTransactionFromDtcTransaction(IDtcTransaction transactionNative) 77internal Transaction? SavedLtmPromotedTransaction { get; set; }
System\Transactions\Transaction.cs (22)
15internal Transaction? _transaction; 16public Transaction? Transaction => _transaction; 81internal static Transaction? FastGetTransaction(TransactionScope? currentScope, ContextData contextData, out Transaction? contextTransaction) 83Transaction? current = null; 135out Transaction? current, 137out Transaction? contextTransaction) 151public static Transaction? Current 161GetCurrentTransactionAndScope(TxLookup.Default, out Transaction? current, out TransactionScope? currentScope, out _); 225internal bool Disposed { get { return _disposed == Transaction._disposedTrueValue; } } 321return obj is Transaction transaction && _internalTransaction.TransactionHash == transaction._internalTransaction.TransactionHash; 324public static bool operator ==(Transaction? x, Transaction? y) 333public static bool operator !=(Transaction? x, Transaction? y) 690public Transaction Clone() 705Transaction clone = InternalClone(); 714internal Transaction InternalClone() 716Transaction clone = new Transaction(_isoLevel, _internalTransaction); 828if (Interlocked.Exchange(ref _disposed, Transaction._disposedTrueValue) == Transaction._disposedTrueValue) 1122internal Transaction? CurrentTransaction;
System\Transactions\TransactionInteropNonWindows.cs (11)
11internal static OletxTransaction ConvertToOletxTransaction(Transaction transaction) 45public static byte[] GetExportCookie(Transaction transaction, byte[] whereabouts) 71public static Transaction GetTransactionFromExportCookie(byte[] cookie) 97Transaction? transaction = TransactionManager.FindPromotedTransaction(txId); 120public static byte[] GetTransmitterPropagationToken(Transaction transaction) 141public static Transaction GetTransactionFromTransmitterPropagationToken(byte[] propagationToken) 162Transaction? tx = TransactionManager.FindPromotedTransaction(txId); 176Transaction returnValue = TransactionManager.FindOrCreatePromotedTransaction(txId, dTx); 185public static IDtcTransaction GetDtcTransaction(Transaction transaction) 206public static Transaction GetTransactionFromDtcTransaction(IDtcTransaction transactionNative) 216Transaction transaction = OletxTransactionManager.GetTransactionFromDtcTransaction(transactionNative);
System\Transactions\TransactionManager.cs (8)
17public delegate Transaction? HostCurrentTransactionCallback(); 73if (weakRef.Target is Transaction tx) 83internal static void FireDistributedTransactionStarted(Transaction transaction) 548internal static Transaction? FindPromotedTransaction(Guid transactionIdentifier) 554if (weakRef.Target is Transaction tx) 570internal static Transaction FindOrCreatePromotedTransaction(Guid transactionIdentifier, OletxTransaction dtx) 572Transaction? tx = null; 579tx = weakRef.Target as Transaction;
System\Transactions\TransactionScope.cs (20)
346public TransactionScope(Transaction transactionToUse) 352Transaction transactionToUse, 375public TransactionScope(Transaction transactionToUse, TimeSpan scopeTimeout) 381Transaction transactionToUse, 405Transaction transactionToUse, 465Transaction transactionToUse, 545Transaction? contextTransaction = null; 546Transaction? current = Transaction.FastGetTransaction(actualCurrentScope, _threadContextData, out contextTransaction); 558Transaction? rollbackTransaction = (Transaction?)_committableTransaction ?? _dependentTransaction; 791Transaction? rollbackTransaction = (Transaction?)_committableTransaction ?? _dependentTransaction; 909Transaction.GetCurrentTransactionAndScope( 930_interopOption = Transaction.InteropMode(_savedCurrentScope); 1036private void SetCurrent(Transaction? newCurrent) 1151currentInteropOption = Transaction.InteropMode(_savedCurrentScope); 1172private Transaction? _savedCurrent; 1177private Transaction? _contextTransaction; 1188private Transaction? _expectedCurrent;
System\Transactions\TransactionsEtwProvider.cs (1)
269internal void TransactionCloneCreate(Transaction transaction, string type)
System\Transactions\TransactionState.cs (40)
200Transaction atomicTransaction 211Transaction atomicTransaction 221Transaction atomicTransaction 231Transaction atomicTransaction 271Transaction atomicTransaction, 459Transaction atomicTransaction) 544Transaction atomicTransaction) 560Transaction atomicTransaction) 709Transaction atomicTransaction 735Transaction atomicTransaction 759Transaction atomicTransaction, 854Transaction atomicTransaction 865Transaction atomicTransaction 888Transaction atomicTransaction, 953Transaction atomicTransaction 971Transaction atomicTransaction 988Transaction atomicTransaction 1014Transaction atomicTransaction 1047Transaction atomicTransaction, 1665Transaction atomicTransaction 1694Transaction atomicTransaction 1724Transaction atomicTransaction 1765Transaction atomicTransaction 1862Transaction atomicTransaction, 2666internal override Enlistment EnlistVolatile(InternalTransaction tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 2672internal override Enlistment EnlistVolatile(InternalTransaction tx, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 2678internal override Enlistment EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 2684internal override Enlistment EnlistDurable(InternalTransaction tx, Guid resourceManagerIdentifier, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions, Transaction atomicTransaction) 3406Transaction atomicTransaction 3432Transaction atomicTransaction 3460Transaction atomicTransaction 3472Transaction atomicTransaction 3481Transaction atomicTransaction, 3802Transaction atomicTransaction 3812Transaction atomicTransaction 3820Transaction atomicTransaction, 3901Transaction atomicTransaction 3911Transaction atomicTransaction 3919Transaction atomicTransaction, 4523Transaction atomicTransaction