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