1 write to State
System.Transactions.Local (1)
System\Transactions\TransactionState.cs (1)
164tx.State = this;
143 references to State
System.Transactions.Local (143)
System\Transactions\CommittableTransaction.cs (16)
64Debug.Assert(_internalTransaction.State != null); 67_internalTransaction.State.BeginCommit(_internalTransaction, true, asyncCallback, asyncState); 98Debug.Assert(_internalTransaction.State != null); 99_internalTransaction.State.BeginCommit(_internalTransaction, false, null, null); 105if (_internalTransaction.State.IsCompleted(_internalTransaction)) 111_internalTransaction.State.EndCommit(_internalTransaction); 133Debug.Assert(_internalTransaction.State != null); 134if (_internalTransaction.State.get_Status(_internalTransaction) == TransactionStatus.Active) 139_internalTransaction.State.DisposeRoot(_internalTransaction); 173Debug.Assert(_internalTransaction.State != null); 174if (_internalTransaction.State.IsCompleted(_internalTransaction)) 180_internalTransaction.State.EndCommit(_internalTransaction); 203Debug.Assert(_internalTransaction.State != null); 206_internalTransaction.State.get_Status(_internalTransaction) != TransactionStatus.Active); 223Debug.Assert(_internalTransaction.State != null); 224return _internalTransaction.State.get_Status(_internalTransaction) != TransactionStatus.Active;
System\Transactions\DependentTransaction.cs (6)
20Debug.Assert(_internalTransaction.State != null); 23_internalTransaction.State.CreateBlockingClone(_internalTransaction); 27_internalTransaction.State.CreateAbortingClone(_internalTransaction); 51Debug.Assert(_internalTransaction.State != null); 54_internalTransaction.State.CompleteBlockingClone(_internalTransaction); 58_internalTransaction.State.CompleteAbortingClone(_internalTransaction);
System\Transactions\DurableEnlistmentState.cs (14)
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); 214Debug.Assert(enlistment.Transaction.State != null); 216enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction); 239Debug.Assert(enlistment.Transaction.State != null); 241enlistment.Transaction.State.ChangeStatePromotedCommitted(enlistment.Transaction); 251Debug.Assert(enlistment.Transaction.State != null); 253enlistment.Transaction.State.ChangeStatePromotedAborted(enlistment.Transaction); 263Debug.Assert(enlistment.Transaction.State != null); 268enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction);
System\Transactions\Enlistment.cs (2)
241Transaction.State!.Phase0VolatilePrepareDone(Transaction); 397_transaction.State!.Phase1VolatilePrepareDone(_transaction);
System\Transactions\InternalTransaction.cs (5)
168internal Guid DistributedTxId => State!.get_Identifier(this); 304Debug.Assert(tx.State! != null); 309tx.State.ChangeStatePromotedCommitted(tx); 315tx.State.ChangeStatePromotedAborted(tx); 321tx.State.InDoubtFromDtc(tx);
System\Transactions\Transaction.cs (24)
461Debug.Assert(_internalTransaction.State != null); 462internalPromotedToken = _internalTransaction.State.PromotedToken(_internalTransaction); 502Debug.Assert(_internalTransaction.State != null); 503Enlistment enlistment = _internalTransaction.State.EnlistDurable(_internalTransaction, 550Debug.Assert(_internalTransaction.State != null); 551Enlistment enlistment = _internalTransaction.State.EnlistDurable(_internalTransaction, 576Debug.Assert(_internalTransaction.State != null); 577_internalTransaction.State.Rollback(_internalTransaction, null); 600Debug.Assert(_internalTransaction.State != null); 601_internalTransaction.State.Rollback(_internalTransaction, e); 637Debug.Assert(_internalTransaction.State != null); 638Enlistment enlistment = _internalTransaction.State.EnlistVolatile(_internalTransaction, 676Debug.Assert(_internalTransaction.State != null); 677Enlistment enlistment = _internalTransaction.State.EnlistVolatile(_internalTransaction, 797Debug.Assert(_internalTransaction.State != null); 799_internalTransaction.State.AddOutcomeRegistrant(_internalTransaction, value); 919Debug.Assert(_internalTransaction.State != null); 920succeeded = _internalTransaction.State.EnlistPromotableSinglePhase(_internalTransaction, promotableSinglePhaseNotification, this, promoterType); 964Debug.Assert(_internalTransaction.State != null); 965Enlistment enlistment = _internalTransaction.State.PromoteAndEnlistDurable(_internalTransaction, 1002Debug.Assert(_internalTransaction.State != null); 1003_internalTransaction.State.SetDistributedTransactionId(_internalTransaction, 1019Debug.Assert(_internalTransaction.State != null); 1022_internalTransaction.State.Promote(_internalTransaction);
System\Transactions\TransactionInformation.cs (4)
59Debug.Assert(_internalTransaction.State != null); 60return _internalTransaction.State.get_Identifier(_internalTransaction); 88Debug.Assert(_internalTransaction.State != null); 89return _internalTransaction.State.get_Status(_internalTransaction);
System\Transactions\TransactionState.cs (44)
163Debug.Assert(tx.State != this, "Changing to the same state."); 552return tx.State!.EnlistDurable(tx, resourceManagerIdentifier, enlistmentNotification, enlistmentOptions, atomicTransaction); 568return tx.State!.EnlistDurable(tx, resourceManagerIdentifier, enlistmentNotification, enlistmentOptions, atomicTransaction); 606tx.State!.GetObjectData(tx, serializationInfo, context); 625tx.State!.Phase0VolatilePrepareDone(tx); 654tx.State!.CheckForFinishedTransaction(tx); 662tx.State!.CheckForFinishedTransaction(tx); 819tx.State!.Rollback(tx, null); 858return tx.State!.EnlistVolatile(tx, enlistmentNotification, enlistmentOptions, atomicTransaction); 869return tx.State!.EnlistVolatile(tx, enlistmentNotification, enlistmentOptions, atomicTransaction); 876return tx.State!.get_Status(tx); 882tx.State!.AddOutcomeRegistrant(tx, transactionCompletedDelegate); 898tx.State!.CreateBlockingClone(tx); 905tx.State!.CreateAbortingClone(tx); 935if (!tx.State!.ContinuePhase0Prepares()) 962tx.State!.RestartCommitIfNeeded(tx); 980tx.State!.RestartCommitIfNeeded(tx); 1115if (!tx.State!.ContinuePhase0Prepares()) 1146tx.State!.CheckForFinishedTransaction(tx); 1147tx.State.RestartCommitIfNeeded(tx); 1166tx.State!.GetObjectData(tx, serializationInfo, context); 1169tx.State.RestartCommitIfNeeded(tx); 1206if (!tx.State!.ContinuePhase1Prepares()) 1886tx.State!.Phase0VolatilePrepareDone(tx); 2212tx.State!.ChangeStateAbortedDuringPromotion(tx); 2300Debug.Assert(tx.State != null); 2325tx.State.ChangeStateAbortedDuringPromotion(tx); 2354tx.State.ChangeStateAbortedDuringPromotion(tx); 2384tx.State.ChangeStateAbortedDuringPromotion(tx); 2392tx.State!.Rollback(tx, null); 2521if (!tx.State!.ContinuePhase0Prepares()) 2589tx.State!.ChangeStateTransactionAborted(tx, null); 2607if (!tx.State!.ContinuePhase1Prepares()) 3295tx.State!.ChangeStateAbortedDuringPromotion(tx); 3542tx.State!.Phase0VolatilePrepareDone(tx); 3639tx.State!.Rollback(tx, null); 3668if (!tx.State!.ContinuePhase0Prepares()) 3712if (!tx.State!.ContinuePhase0Prepares()) 3763if (!tx.State!.ContinuePhase1Prepares()) 4282tx.State!.ChangeStateAbortedDuringPromotion(tx); 4351Debug.Assert(tx.State == TransactionStateActive, "PSPEPromote called from state other than TransactionStateActive"); 4378Debug.Assert(tx.State == TransactionStatePhase0, "Phase0PSPEInitialize called from state other than TransactionStatePhase0"); 4400TransactionState? returnState = tx.State; 4556enlistment = tx.State!.EnlistDurable(tx, resourceManagerIdentifier, enlistmentNotification, enlistmentOptions, atomicTransaction);
System\Transactions\TransactionTable.cs (2)
633tx.State!.Timeout(tx); 677tx.State!.Timeout(tx);
System\Transactions\VolatileEnlistmentMultiplexing.cs (16)
258Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 261_transaction.State.ChangeStatePromotedPhase0(_transaction); 285Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 290_transaction.State.ChangeStatePromotedCommitted(_transaction); 295Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 300_transaction.State.ChangeStatePromotedAborted(_transaction); 305Debug.Assert(_transaction.State != null); 306_transaction.State.InDoubtFromDtc(_transaction); 349Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 352_transaction.State.ChangeStatePromotedPhase1(_transaction); 377Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 382_transaction.State.ChangeStatePromotedCommitted(_transaction); 388Debug.Assert(_promotedEnlistment != null && _transaction.State != null); 393_transaction.State.ChangeStatePromotedAborted(_transaction); 399Debug.Assert(_transaction.State != null); 400_transaction.State.InDoubtFromDtc(_transaction);
System\Transactions\VolatileEnlistmentState.cs (10)
179Debug.Assert(enlistment.Transaction.State != null); 181enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e); 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); 266Debug.Assert(enlistment.Transaction.State != null); 267enlistment.Transaction.State.InDoubtFromEnlistment(enlistment.Transaction);