68 references to Transaction
System.Transactions.Local (68)
System\Transactions\DurableEnlistmentState.cs (29)
93Monitor.Exit(enlistment.Transaction); 114Monitor.Enter(enlistment.Transaction); 120enlistment.Transaction._innerException ??= e; 144Monitor.Exit(enlistment.Transaction); 170Monitor.Enter(enlistment.Transaction); 182Debug.Assert(enlistment.Transaction.State != null); 184enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction); 192Debug.Assert(enlistment.Transaction.State != null); 194enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction); 202Debug.Assert(enlistment.Transaction.State != null); 204enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e); 212enlistment.Transaction._innerException ??= e; 214Debug.Assert(enlistment.Transaction.State != null); 216enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction); 239Debug.Assert(enlistment.Transaction.State != null); 241enlistment.Transaction.State.ChangeStatePromotedCommitted(enlistment.Transaction); 249enlistment.Transaction._innerException ??= e; 251Debug.Assert(enlistment.Transaction.State != null); 253enlistment.Transaction.State.ChangeStatePromotedAborted(enlistment.Transaction); 261enlistment.Transaction._innerException ??= e; 263Debug.Assert(enlistment.Transaction.State != null); 268enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction);
System\Transactions\Enlistment.cs (11)
74if (Transaction != null) 76returnValue = Transaction.DistributedTxId; 227Transaction._phase0Volatiles._preparedVolatileEnlistments++; 234Debug.Assert(Transaction._phase0Volatiles._preparedVolatileEnlistments <= 235Transaction._phase0Volatiles._volatileEnlistmentCount + Transaction._phase0Volatiles._dependentClones); 238if (Transaction._phase0Volatiles._preparedVolatileEnlistments == 239Transaction._phase0VolatileWaveCount + Transaction._phase0Volatiles._dependentClones) 241Transaction.State!.Phase0VolatilePrepareDone(Transaction);
System\Transactions\VolatileEnlistmentState.cs (28)
138Monitor.Exit(enlistment.Transaction); 152Monitor.Enter(enlistment.Transaction); 179Debug.Assert(enlistment.Transaction.State != null); 181enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e); 219Monitor.Exit(enlistment.Transaction); 234Monitor.Enter(enlistment.Transaction); 241Debug.Assert(enlistment.Transaction.State != null); 242enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction); 248Debug.Assert(enlistment.Transaction.State != null); 249enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction); 256Debug.Assert(enlistment.Transaction.State != null); 257enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e); 264enlistment.Transaction._innerException ??= e; 266Debug.Assert(enlistment.Transaction.State != null); 267enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction); 337if (enlistment.Transaction._innerException == null) 341enlistment.Transaction._innerException = e; 363Monitor.Exit(enlistment.Transaction); 377Monitor.Enter(enlistment.Transaction); 406Monitor.Exit(enlistment.Transaction); 421Monitor.Enter(enlistment.Transaction); 440Monitor.Exit(enlistment.Transaction); 455Monitor.Enter(enlistment.Transaction);