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